Server time on Boru

Status
Not open for further replies.

dfb2000

New Member
Messages
8
Reaction score
0
Points
0
I apologize if I am missing something obvious here, but as I posted in a previous support request (http://x10hosting.com/forums/free-hosting/131279-server-time-boru-off-1-hour.html?pagenumber=), my PHP function call "time()" is not returning the correct time again. At some point after I submitted my original ticket, the time returned DID change, and was returning the correct time. I've recently noticed the off-by-one-hour issue has returned.

This page: http://hgdash.x10hosting.com/test.php

is calling this PHP function to get the timestamp:
$curTime = date("D, M j g:i:s A T Y", time());

I am using this same statement on other (non-x10hosting) servers, and they all return the correct time.

Again, my apologies if I'm missing something obvious, and this belongs in the programming help thread.

Thanks,
db
 

dfb2000

New Member
Messages
8
Reaction score
0
Points
0
Does using the function date_default_timezone_set() in your script to set the timezone fix the issue?

No, it doesn't seem to fix the issue, just updates my timestamp with a new timezone (still off by an hour).

When I run date_default_timezone_get(), it shows me 'America/New_York'. Is that the actual correct time zone for where the server is located?

-db
 
Status
Not open for further replies.
Top