timestamp problem?

From: Date: Tue, 08 Feb 2005 11:30:29 +0000
Subject: timestamp problem?
Groups: php.general 
Request: Send a blank email to php-general+get-208243@lists.php.net to get a copy of this message
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. -- Stefan, a simple CRUX Linux user. Linux registered user: #272012 [Linux is Friendly. It's just selective about who his friends are.] -- This message was scanned for spam and viruses by BitDefender For more information please visit http://linux.bitdefender.com/

« previous php.general (#208243) next »