peasepud
Programmer
- Jul 20, 2007
- 35
Hi,
Im taking a date from a database and storing it in $when which on echo is returning the expected value of 2007-08-01 19:45:00
if I then take $when and process it through getdate($when) and print_r the array I get:
Array ( [seconds] => 21 [minutes] => 1 [hours] => 15 [mday] => 23 [wday] => 2 [mon] => 10 [year] => 2007 [yday] => 295 [weekday] => Tuesday [month] => October [0] => 1193148081 )
Can anyone tell me where Im going wrong? I seem to have added on about 90 days or so somewhere?
Im taking a date from a database and storing it in $when which on echo is returning the expected value of 2007-08-01 19:45:00
if I then take $when and process it through getdate($when) and print_r the array I get:
Array ( [seconds] => 21 [minutes] => 1 [hours] => 15 [mday] => 23 [wday] => 2 [mon] => 10 [year] => 2007 [yday] => 295 [weekday] => Tuesday [month] => October [0] => 1193148081 )
Can anyone tell me where Im going wrong? I seem to have added on about 90 days or so somewhere?