Msg#: 4441209 posted 2:40 am on Apr 16, 2012 (gmt 0)
Hello All -
This application simply takes the timestamp for the current date (at 12:01pm) and generates a calendar for the next 12 months. When a user clicks on one of the dates, the timestamp for the date clicked is retrieved and other stuff happens.
For example, in my application I'm using my local time zone setting - ini_set('date.timezone','Asia/Manila'). When I run a test for April 15, 2012 12:01pm I get a timestamp of 1334462460. If I then change the time zone setting to ini_set('date.timezone','America/New_York'), I get a timestamp of 1334505660.
I *thought* that a timestamp for a particular date would be the same no matter where in the world a user was, but apparently this is really determined by the timezone ini setting. Correct?
So, after all of that, my real question is: what is the "safest" timezone to implement for calendar application which could be potentially accessed from any timezone? ini_set('date.timezone','Europe/London')... which would be UTC 0?
If further clarification is needed, please do ask.