Hacker News new | ask | show | jobs
by steerablesafe 1956 days ago
Various behaviors when requesting time in a non-existent timezone:

sane: report an error in some hard to ignore form

less sane: ignore the provided timezone, display the time in UTC and properly mark it with "UTC"

insane: ignore the provided timezone, display the time in UTC, but then mark it with the prefix of the provided timezone anyway.

I don't care how well documented the insane behavior is, it's still insane.

1 comments

It didn't display the time in UTC, it displayed the time in timezone LOL. It happened to be the same as UTC because no offset was specified. It knew it was timezone LOL because that's what the TZ variable was set to.

If you set your machine to something weird, then expect the utility that reports on those settings to report the weird settings you set.