Skip to content

Instantly share code, notes, and snippets.

@somebox
Last active March 9, 2016 11:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save somebox/24d72d04c917629da051 to your computer and use it in GitHub Desktop.
Save somebox/24d72d04c917629da051 to your computer and use it in GitHub Desktop.
Why use UTC for DB, APIs, Services... in Switzerland?
  • UTC is best practice http://stackoverflow.com/questions/2532729/daylight-saving-time-and-time-zone-best-practices
  • DST changes can causes issues with things like opening hours, publication dates on contracts, etc... UTC helps avoid this
  • embrace the pattern: UTC on systems and APIs, TZ display in UI/UX and outputs
  • integrations with partners, 3rd-party services (think Amazon, Google Cloud computing, pub/sub services, filepicker... all will use UTC)
  • you trade "easier to think about" for "subtle bugs and weird test fails" in the future
  • people assuming we're standard UTC like the rest of the world might set up servers/services in CEST and be off by an hour (past example: localina!)
  • someday you will work for a company that does things outside of Switzerland. You should learn this :)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment