Is the time wrong on the server?

Support zone

Is the time wrong on the server?

Postby ktp » Sat Nov 14, 2009 2:12 am

I have dial plan which uses the server time to route calls and notice it is failing. It seems like the time on the server is wrong. I was printing the server time and noticed it seems to be 8 hours ahead.

Here is the code I am using and ran at (Sat Nov 14 02:00:04 2009 UTC):

Code: Select all
currentTime = Time.now
sys.Log("is UTC #{currentTime.utc?} utc offset #{currentTime.utc_offset}  #{currentTime.to_s}")
sys.Log(currentTime.gmtime.strftime('GMT time: %c'))

Code: Select all
DialPlan=> is UTC false utc offset -28800  Sat Nov 14 02:00:04 -08:00 2009
DialPlan=> GMT time: 11/14/2009 10:00 AM


Also I noticed the trace emails I was getting all had wrong time also (8 hours ahead).
ktp
 
Posts: 34
Joined: Tue Oct 13, 2009 12:31 am

Postby ktp » Sat Nov 14, 2009 2:29 am

Seems like the time is correct now...GMT time: Sat Nov 14 02:23:21 Z 2009
ktp
 
Posts: 34
Joined: Tue Oct 13, 2009 12:31 am


Return to Technical Support

Who is online

Users browsing this forum: benifa and 1 guest

cron