On Tuesday 08 February 2005 19:30, Balu Stefan wrote: > Also mktime generates the second timestamp ...damn, I really don't know > why there are two different > timestamps for the same date. A few of PHP's date/time functions take into account the local time zone of the server. So: > I use strtotime('m/d/y') for 01 January 2011 it would be: > strtotime('01/01/2011') > Now, a fiew days ago, the timestamp generated by this was: 1293840000 means your original setup had the server set to UTC because: echo strtotime('1st Jan 2011 UTC'); // 1293840000 Now > After a hardware failure, I reinstalled my linux with the same > settings... > now, a timestap of 01/01/2011 is returned as: 1293832800 > What am I doing wrong? Suggests that your server is now set to a timezone that is UTC+0200 -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * ------------------------------------------ Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general ------------------------------------------ New Year Resolution: Ignore top posted posts -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php