06-06-2009, 06:29 PM
|
#2 (permalink)
|
|
The Gregarious
Join Date: Feb 2009
Location: New York
Posts: 645
Thanks: 64
|
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.
DB
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.
OUT
269323200 <--- Same consistent data.
But when I use the date() function, it shows: 7 14 1978
$date = date("n j, Y ",$bday);
CRAZY!!!!
WHY!!!??
|
|
|
|