Sunday, 7 May 2017

Nodejs and mysql database timezone issue

am having a bad time with the timezone of my server

am using nodejs as backend and express routes for services

i changed the time for the server with the correct one using:-

dpkg-reconfigure tzdata

and i checked the server time and seems good

am using

data

to get the current time and it's correct for my country (Saudi Arabia)

the problem is when the record created in the database still give me the wrong time within a delay of 3 hours !!!!

so the database time and server is correct, how come the record created with wrong time ?



via Faisal

No comments:

Post a Comment