- write 29 March 2015 as the date/time to the device.( This is the date on which Daylight savings time adjustment is applied, coincidentally)
- read back the currrent date and time.
- Date and Time read back is 1 Apr 2015.
- I was expecting to read back 29 March 2015.
code to write date/time:
SlDateTime_t dateTime;
dateTime.sl_tm_day = (unsigned long)29;
dateTime.sl_tm_mon = (unsigned long)2;
dateTime.sl_tm_year = (unsigned long)2015;
dateTime.sl_tm_hour = (unsigned long)18;
dateTime.sl_tm_min = (unsigned long)0;
dateTime.sl_tm_sec = (unsigned long)0;
(void)sl_DevSet((unsigned char)SL_DEVICE_GENERAL_CONFIGURATION, (unsigned char) SL_DEVICE_GENERAL_CONFIGURATION_DATE_TIME, (unsigned char)sizeof(SlDateTime_t), (unsigned char *)(&dateTime));
Setup : IAR compiler, CC3200, TI SDK 1.0.0.1.1
Why is this the reported date/time incorrect ? Is this a known issue ?
regards,
-AG