Hacker News new | ask | show | jobs
by alexfoo 3401 days ago
If TZ is set properly then you don't need to change it twice a year.

(man tzset for more info and examples of different values TZ can be set to. Mine is set to "Europe/London" which handles the DST switches automatically.)

2 comments

Hm…, now that I read TZSET(3): Wouldn't that be

    TZ=:Europe/London
It doesn't seem tzset() will accept the format

    TZ=Europe/London

?
Yes, but " If the colon is omitted each of the above TZ formats will be tried." , so it'll be figured out even if the colon is missing.
Ah yes, thanks for pointing that out!