peculiar date issue
View Single Post
06-06-2009, 06:29 PM
Join Date: Feb 2009
Location: New York
Some more info.
I made my birthday: july 15 1978. Here is the mktime data that goes into the DB.
$bday = mktime(0, 0, 0, 7, 15, 1978);
$bday becomes: 269323200
Before DB INSERT
269323200 <-- mktime version of: 7 15 1978
I check the DB to make sure it has the same data and it does.
269323200 <--- Same as above
I then log off, and back on to pull the data out and make sure the data hasn't changed, and it has not.
269323200 <--- Same consistent data.
But when I use the date() function, it shows: 7 14 1978
$date = date("n j, Y ",$bday);
View Public Profile
Send a private message to allworknoplay
Find More Posts by allworknoplay