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).
