php - MySQL: keep server timezone or user timezone? -


I am thinking of storing user login dates on my site, but I do not know what is the most logical Is the solution

Initially, although I used to use the server timezone, and then to manage the difference between the server machine date and the date of the user machine, but I used it in timezone And php class date, therefore:

   

I have to ask, what is the best solution, how to keep server timezone or use user timezone?
And if I use the user's timezone, then do I have the name of the time as an example like me?

I want to use server time zones or UTC instead of collecting individual data As such, for every user, your database will be fully compatible, and for every entry you get, to get the user_timezone column and convert it (which is not completely free Some actions can be done without comparison.


Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

php - jQuery AJAX Post not working -