Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • 3
    YMMV: on my MacOS/BSD box, malformed TZ string returns UTC time. Commented Sep 20, 2019 at 17:40
  • @MarkHudson: Yes, also date from GNU coreutils 9.3 on Arch Linux uses UTC when TZ is set to an invalid value. For example, TZ="Gobbledygook" date +"%z %Z" produces "+0000 Gobbledygook". My current time zone is +0200 CEST according to date +"%z %Z". Commented Jul 7, 2023 at 15:41