Please login or sign up to post and edit reviews.
Implicit time zones and the TZ environment variable
Podcast |
Frontend First
Media Type |
audio
Categories Via RSS |
Technology
Publication Date |
May 11, 2023
Episode Duration |
00:46:17

Sam shares some recent learnings around hydration mismatches when rendering time zoned dates on the server and the client. He talks about using the TZ environment variable to reproduce the issue locally, and how he solved his problem by avoiding impure format and transformation functions from date-fns.

Topics include:

  • 0:00 - Intro
  • 0:50 - Sever vs. client time zone mismatches, and the TZ environment variable
  • 14:34 - Which date-fns functions are impure?
  • 23:56 - Using intervals and comparison to remove impurities

Links:

This episode currently has no reviews.

Submit Review
This episode could use a review!

This episode could use a review! Have anything to say about it? Share your thoughts using the button below.

Submit Review