Time Zones

Episode #419 by Teacher's Avatar David Kimura

Summary

Working with time zones can be difficult and lead to the inaccurate display of data. In this episode, we explore how to display dates & times and query records based on a user's time zone.
rails time zones view 13:39

Chapters

  • Introduction (0:00)
  • Overview (1:20)
  • Allow Devise to handle time zones (2:07)
  • Updated the Devise Views (2:57)
  • Allow time_zone to be updated by Devise (4:41)
  • Displaying the times based on the current_user time_zone (5:40)
  • Querying based on user's time zone (8:10)
Student & Teacher
$ 9 /mo

Valid School Email Required

Same Access as Pro

Subscribe Now
Pro Monthly
$ 19 /mo

Access to Pro Episodes

Invite to Slack Channel

Priority Suggestions

Ad Free

Subscribe Now
Pro Annual
$ 190 /yr

Access to Pro Episodes

Invite to Slack Channel

Priority Suggestions

Ad Free

Subscribe Now
Teams
$ 57 /mo

3 Users Minimum

$19.00 / user / month

Same Access as Pro

Subscribe to Teams