PHP time configuration

Status
Not open for further replies.

cdr-visu

New Member
Messages
2
Reaction score
0
Points
0
Hello,

is there a way to configure server time? When I use, for instance, the PHP time() function I get a time which doesn't match with my time zone.

Thanks.
 

Corey

I Break Things
Staff member
Messages
34,551
Reaction score
204
Points
63
The time is based off of the servers, you'll have to compensate when using time to make up the different like

$timeStamp = time() - 3600; Would give me an hour back.


-Corey
 
Status
Not open for further replies.
Top