PHP Time is wrong

brendon2020

[H]ard|Gawd
Joined
Dec 15, 2002
Messages
1,541
I just installed php 5.1RC1, mysql 4.1.14, apache1.3.33 on a windows 2000 server machine. Anyway some wierd bugs are happening, the time for the server is incorrect. The time set on the machine is right, the time in the apache error log is right, but when i do a simple time() call in php is gives some ridiculous time like 6:30PM and its really 2:01PM.

another problem i just remembered was something i'm hoping is simple. I do a simple printing of the date using the date function. I believe i did something like this,

$today = date("F j, Y, g:i a");

From what i remember it had a "f" after the month and the year was repeated twice. The day and month were correct though.

Anyone know whats going on? I'm not at the machine now but once they set up their vpn and can go in and change whatever it is.
 
Back
Top