DEV Community

How to avoid and debug most of timezone problems in production

Raphaël Badia on June 14, 2020

Have you ever been struggling to reproduce a weird bug happening only on production? Some offset between what you have in local (that obviously wo...
Collapse
 
wallacesf profile image
Wallace Ferreira

Thank you. TypeORM was returning 3 hours ahed from timestamp column fields. This env fixed the problem.

Collapse
 
emilbuszylo profile image
Emil Buszyło

Thank you so much !
You have just rescued my Sunday afternoon !

Collapse
 
shriram1056 profile image
shriram1056 • Edited

Hi Raphaël,

I want the timezone to be based on location to account for timezone shift, how can i do that?