https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114645
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |WONTFIX Status|UNCONFIRMED |RESOLVED --- Comment #6 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to Hristo Venev from comment #4) > Therefore current_zone() as currently implemented is worse than useless -- > it is a footgun. So don't use it then. > The people who wrote the standard probably did not consider how various > platforms handle default time zones this at all. That's a pretty bug assumption, and wrong. > I don't understand why you consider the ability to override the default time > zone using an environment variable to be a flaw. For one, the environment is mutable and not threadsafe. Anyway, this isn't going to change just because you don't like it.