Search found 1 match

by hariprasad
Wed Mar 16, 2022 3:27 pm
Forum: General Discussion
Topic: Localtime_r gives tm_hour in negative for specific timezone(eg - /asia/kabul/)
Replies: 0
Views: 1353

Localtime_r gives tm_hour in negative for specific timezone(eg - /asia/kabul/)

Hi all, We are currently working on datetime setting to set time for different time zone. We are using ESP32S2 . We are setting the timezone using setenv() and tzset() and used localtime_r() in time.h library to convert epoch time to local time. We followed below steps for setting the time zone and ...