Timezone Bugs Cost More Than You Think
I've debugged timezone issues in three ERPNext systems. They're always worse than you expect.
I spent four hours last week hunting a bug in an Odoo instance. Daily revenue reports were off by 17 orders every morning. The client's team kept saying "it's always been like this." It hadn't.
Turns out the system was calculating "today" in UTC, but the business operates in EAT (UTC+3). Simple right? Just add timezone config. Except the database was already storing timestamps incorrectly. Historical data was corrupted. Resyncing took longer than the initial fix.
This happens because timezones are invisible until they break something critical. You write your first dashboard, everything works in your local timezone, and you ship it. Three months later you've got offices in Berlin, Dubai, and Bangkok all seeing different numbers.
I've learned the hard way:
Store everything in UTC. Always. Database, APIs, logs. Convert to local timezone only for display. No exceptions.
Test daylight saving transitions. Run a job during DST changeovers. Most developers don't. Most timezones have one scheduled every year. Rails has helpers for this. Laravel doesn't—you'll need to handle it manually.
ERPNext gets this right. Their Report class respects user timezone settings. Odoo too. But legacy systems? Good luck. I once found a PHP app that stored times as strings formatted in local timezone. No way to know if "14:30" meant 2:30 PM in Berlin or Tokyo.
International business software can't ignore this. If you're building for anyone outside your country, timezone bugs aren't edge cases—they're incoming.
The real problem isn't the complexity. It's that timezone handling works perfectly for months, then breaks silently in ways nobody notices until the financial report is wrong. By then, management is asking why accounting can't trust your system.
I now make timezone handling part of my initial architecture review for any business system. Costs an hour to fix properly upfront. Costs weeks to debug later.