Balu Stefan wrote: > First of all, hello everybody, > I am having some problems generating timestamps. > I have a simple application, the user selects a month, a day and a year > and submits > it's data. > Now, I want that date to be stransformed into a unixtimestamp. To do > that > 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 > 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? > > # ls -al /etc/localtime > lrwxrwxrwx 1 root root 36 Feb 7 19:54 /etc/localtime -> > /usr/share/zoneinfo/Europe/Bucharest > # date > Tue Feb 8 13:29:15 EET 2005 > # echo $TZ > Europe/Bucharest > # > > Also mktime generates the second timestamp ...damn, I really don't know > why there are two different > timestamps for the same date. As a guy who ALWAYS screws this up when building a machine... I can't really be sure, and I clearly don't understand it, but there's this UTC setting in the BIOS thingie thing thing, and when I mess it up (every time) I usually end up with everything being "off" by the same (opposite?) number of hours as my time-zone. Maybe you did the same thing... -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php