From 5e6ef04cf873abde96073bc4691f77acc4f13d35 Mon Sep 17 00:00:00 2001 From: skarg Date: Thu, 9 Feb 2006 17:23:56 +0000 Subject: [PATCH] Changed the definition of year for BACnet dates to be AD, since the year 0, since the encoding and decoding were already converting it to and from 1900. --- bacnet-stack/bacdef.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bacnet-stack/bacdef.h b/bacnet-stack/bacdef.h index 6ae01fad..af9f6660 100644 --- a/bacnet-stack/bacdef.h +++ b/bacnet-stack/bacdef.h @@ -86,10 +86,10 @@ typedef struct BACnet_Device_Address BACNET_ADDRESS; /* date */ typedef struct BACnet_Date { - uint8_t year; - uint8_t month; - uint8_t day; - uint8_t wday; + uint16_t year; /* AD */ + uint8_t month; /* 1=Jan */ + uint8_t day; /* 1..31 */ + uint8_t wday; /* 1=Monday */ } BACNET_DATE; /* time */