---
title: "Discussion on \"4 Time Zone Bugs I Ran Into\" | Hashnode"
description: "Discussion on \"4 Time Zone Bugs I Ran Into\". Software development is hard. Time zones are hard. Dealing with time zones in software development?  Yeah, harder.\nHere are 4 places where time zones might differ; and 4 personal bug stories for each case. I'll be referring to the same app for each s..."
url: "https://hashnode.com/posts/4-time-zone-bugs-i-ran-into/5f6b770c61f6923cac7c02e5"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [4 Time Zone Bugs I Ran Into](https://blog.davidojeda.dev/4-time-zone-bugs-i-ran-into?utm_source=hashnode&utm_medium=feed)

Software development is hard. Time zones are hard. Dealing with time zones in software development? Yeah, harder. Here are 4 places where time zones might differ; and 4 personal bug stories for each case. I'll be referring to the same app for each s...

Sep 23, 2020 · 5 min read · blog.davidojeda.dev  
Read the article

-   [#bugs-and-errors](https://hashnode.com/tag/bugs-and-errors)
-   [#programming](https://hashnode.com/tag/programming)

## Written by

[David Ojeda](https://hashnode.com/@david_ojeda)

@david\_ojeda · Mexico

  
[View profile](https://hashnode.com/@david_ojeda)

Problem solver - Web and AWS developer

I love the web 🕸 I also write about personal finance in Spanish at https://perrodinero.blog

## Responses 1

Markdown supported · ⌘↵ to post

[Oliver Jones](https://hashnode.com/@OliverJones)

[Sep 25, 2020](https://hashnode.com/posts/4-time-zone-bugs-i-ran-into/5f6b770c61f6923cac7c02e5/comment/5f6dccb660599c596c472083)

Here's another timezone bug. With a _correct_ timezone file, I once tried to convert a local time of 2018-03-23 02:15 to UTC time. It failed with some sort of "incorrect date/time value" exception. It was buried in a big batch of otherwise correct data, which made it worse to track down.

It turned out that, in my timezone (America/New\_York) that time didn't exist! That was daylight time switchover day in 2018. The local clock ticks from 01:59 to 03:00 on that day.

[David Ojeda](https://hashnode.com/@david_ojeda)

[Sep 25, 2020](https://hashnode.com/posts/4-time-zone-bugs-i-ran-into/5f6b770c61f6923cac7c02e5/comment/5f6dccb660599c596c472083#reply-5f6e10caade1fb598d439634)

Yeah, it sounds like a really difficult bug to track down. DST always finds a way to ruin the day 😅

Thanks for sharing! I'll be even more cautious when the next DST change is approaching.
