My server is in Dallas. I'm in New York .. both PHP and MySQL have configuration variables for setting the time zone.
How do I get them to work together? What dates should I store in MySQL? How to get PHP to handle a date change based on user preferences?
Keep in mind: I donβt think I have ever had PHP, explicitly set the date, always using "NOW ()" in the queries. However, I foresee the need to do this. How to do it?
I hope that such an experience will help me here.
Sam
source
share