|
|
|
|
|
by takinola
1043 days ago
|
|
I built a logistics SaaS for ecommerce and the issue of timezones almost drove me insane. Finally, I discovered the 3-step solution to preserve my sanity. 1. Store all dates/times in UTC. This way, you know at least know exactly what point in time the data represents. 2. Display in the user timezone as needed 3. Delegate handling of time manipulation to an external library (like Lumen). This way you don't have to deal with all the intricacies of understanding international law and geopolitics required to turn timestamps into actual real life event |
|