PHP Date function help needed

Zyenet

Addicted
Joined
Aug 17, 2007
Messages
758
Reaction score
0
FP$
511
Since switching my news posting system to CuteNews, it displays the post time automatically. Unfortunately, this means it displays the server time (PDT, because the server is in California).

So, how could I change the date function to display time sort of like this:

10/9/2008 @ 5:17 PM EDT (9/10/08 @ 10:17 PM GMT)

(With the above date changed depending on the post, of course.

Here's my current PHP date setting:

Code:
n/j/Y @ g:i A T

This is how it currently outputs:

10/9/2008 @ 11:04 PM PDT
 
You'll probably need to change the PHP timezone setting rather than anything in the PHP code itself
 
Back
Top Bottom