PDA

View Full Version : Date Error in PHP Script


grungee
24-09-2005, 13:34/01:34PM
Hi there guys I am playing around with a php script and I get this error

Warning: date() [function.date]: Windows does not support dates prior to midnight (00:00:00), January 1, 1970 in C:\sokkit\site\home\admin\users_manager.php on line 327

I am using windows xp media centre, running apache 2 and php5, I am also in australia and we use day/month/year instead of the american month/day/year

Cheers for any help

g1smd
24-09-2005, 15:52/03:52PM
Read up on what format is supposed to be the default for the web; see RFC 3339.

But, as it says on the tin, Windows does not support dates before 1970-01-01 - what were you trying to do?

grungee
24-09-2005, 16:01/04:01PM
Originally posted by g1smd
Read up on what format is supposed to be the default for the web; see RFC 3339.

But, as it says on the tin, Windows does not support dates before 1970-01-01 - what were you trying to do?

When I pick a birthdate prior to that date it says that.

Must have changed it somehow now the error says Warning: mktime() [function.mktime]: Windows does not support negative values for this function in C:\sokkit\site\home\functions.php on line 82

hehe