Answer the question
In order to leave comments, you need to log in
How does web server/MySQL know the timezone to write to a timestamp field?
How does Web server/MySql know the timezone to write to a timestamp field?
In http headers, the client does not send its time.
when writing to a timestamp, MySQl writes UTC 0 and when requested, pulls out UTC + GMT
GMT where does it get it from?
Question: How is the client's timezone found out?
Answer the question
In order to leave comments, you need to log in
timezone of the client can be obtained from GeoIP, or ask the client himself (in the account settings)
Well, or find out his system time using javascript and send this information to the server.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question