8/23/2017 12:54 PM | |
Joined: 2/2/2017 Last visit: 4/27/2024 Posts: 36 Rating:
|
Hi, I'm not able to change timezone on IOT2040. It seems /usr/share/zoneinfo/ missed. Thanks |
8/23/2017 5:27 PM | |
Posts: 9 Rating:
|
Do You really need tzset(), it is not really necessary for reading the RTC. uploaded an example without time zone Attachmentclocktime.c.txt (731 Downloads) |
8/23/2017 6:55 PM | |
Joined: 2/2/2017 Last visit: 4/27/2024 Posts: 36 Rating:
|
Hi volkie2307, thank you for reply. My program need to send an email with the timestamp of an event. In my program all timestamps are UTC, and I want to convert the event timestamp into the local time selected for the IOT2040 (i.e. I want to change the localtime from UTC to CEST) . It seems that IOT2040 lacks of timezone files (located in the /usr/share/zoneinfo), so I'm unable to choose one and let localtime_r do the conversion from UTC to local time. Note: I cannot force the clock to the time zone time, because I want to use a ntp server and I must records data in UTC. Any suggestion? ------------------------------------------------------------------------------------------ |
Last edited by: The Helping Hand at: 8/24/2017 8:31:34 AMNew subject after splitting |
|
8/23/2017 8:47 PM | |
Posts: 15 Rating:
|
Hi, please see this post. Currently there is no support for time zones. It will be added next image according the post. |
This contribution was helpful to
1 thankful Users |
Follow us on