Skip to content

Instantly share code, notes, and snippets.

@seanwash
Last active November 15, 2022 16:40
Show Gist options
  • Save seanwash/a443ef730cd7b7e01269f8e6bb2aab33 to your computer and use it in GitHub Desktop.
Save seanwash/a443ef730cd7b7e01269f8e6bb2aab33 to your computer and use it in GitHub Desktop.
Playbook / Dates, DateTimes & Timezones

Playbook / Dates, DateTimes & Timezones

Notes

  • Always store DateTimes in UTC.
  • Be aware of what values your tools default to.
  • Be aware of local configurations that might change those default values.
  • Be aware of services/locations that might use different timezone configs.
    • Server timezone
    • Database timezone
    • Scheduler timezone
    • Application timezone
    • User’s local timezone

Resources

PHP

JavaScript

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment