# The Secret Masters of Time: Who Really Controls Your datetime.now()?

- Speaker: [Alon Wolenitz](/wiki/speakers/alon-wolenitz.md)
- Event: [Reversim Summit 2025](/wiki/years/2025.md)
- Video: https://www.youtube.com/watch?v=nlrJoHdsrtM
- Transcript: [/transcripts/2025/33-nlrJoHdsrtM.md](/transcripts/2025/33-nlrJoHdsrtM.md)
- Language: Hebrew · Type: talk · Level: intermediate
- Topics: [Infrastructure](/wiki/topics/infrastructure.md), [Debugging](/wiki/topics/debugging.md)

> Written by an LLM from machine transcripts. It can contain errors. Check the transcript before you quote it.

## Summary

The speaker explores the hidden complexities of time management in software engineering, sparked by a bizarre bug related to time zones. The talk reveals that standard functions like datetime.now() rely not on governments or tech giants, but on a small group of volunteers maintaining the Time Zone Database. The audience learns about the historical and political chaos behind time zones, how different programming languages handle time, and why developers should never make simplistic assumptions about time. Ultimately, the speaker highlights the fragility of this critical internet infrastructure and provides practical advice for handling time in code safely.

## Key points

- [0:00](https://www.youtube.com/watch?v=nlrJoHdsrtM) A strange bug involving a precise time discrepancy of two hours, 20 minutes, and 54 seconds led the speaker to investigate the complexities of time zones.
- [1:00](https://www.youtube.com/watch?v=nlrJoHdsrtM&t=60s) While developers would prefer everything to be in UTC or Unix time, reality involves complex rules like daylight saving time and leap years.
- [2:00](https://www.youtube.com/watch?v=nlrJoHdsrtM&t=120s) The Time Zone Database (TZDB) is managed by a small group of volunteers, including computer science professors and astronomers, rather than governments.
- [3:02](https://www.youtube.com/watch?v=nlrJoHdsrtM&t=182s) When a government changes its time zone, volunteers update the database, which then propagates through operating systems, Docker images, and programming languages differently.
- [4:04](https://www.youtube.com/watch?v=nlrJoHdsrtM&t=244s) Historical time regulations in Israel, such as transitioning between Gregorian and Hebrew calendars, created unique complications for calculating daylight saving time.
- [5:04](https://www.youtube.com/watch?v=nlrJoHdsrtM&t=304s) The speaker concludes by advising developers not to make naive assumptions about time and to use well-maintained libraries.

## Takeaways

- Never assume time zones and daylight saving rules are static or handled uniformly across different programming languages and environments.
- Be cautious when relying on deprecated date and time libraries in production systems.
- Understand how and where time flows and is parsed within your application's architecture.

## Questions this talk answers

- How do different programming languages handle system time and time zone lookups?
- Who actually maintains the global Time Zone Database and how do updates reach production environments?
- What are the best practices for handling time and daylight saving shifts reliably in modern applications?

## Technologies

Python, Java, JavaScript, Git, Docker, Linux

## Tags

datetime, history, infrastructure, software bugs, time zones
