xiaoxiang781216 commented on PR #9578: URL: https://github.com/apache/nuttx/pull/9578#issuecomment-1601986945
> > > g_lcl_isset > 0 && strcmp(g_lcl_tzname, name) > > > > > > Yes, every time tzset() is called it will be set. How Linux, FreeBSD, etc fix this issue? Did you search more about it? At least on Linux glibc tzset() also verify if tzname is equal to previous one and return. > > I did some search but didn't find much. I think no one actually fix this as it is not really an issue since classic zoneinfo library has different name for every timezone. Therefore you change TZ from lets say `Europe/Prague` to `Mexico/General` and then the name is different. > > Perhaps we should really discard this as it really is not standard and application layer should take care of this if needed. The more I think about this the more I come to the conclusion that `tzreset` is not a good idea. Yes, I think It's better to use the different zoneinfo file name. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
