Hi Guys, i have a weird thing here: when using time variables (%F & %T) in a shell script, out of dial plan (particularly system() app); it displays the right time (same as output of date), but when same variables are used in system() application it displays a wrong time/date (ahead of 6 hours). I am using a centos 5.3, can anyone help me fix this? -- Abdullah -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100413/cb6d5994/attachment.htm
Danny Nicholas
2010-Apr-13 18:27 UTC
[asterisk-users] Time variables in system application
You are apparently in U.S. Central Time zone. Asterisk uses the hardware clock and system() uses the system clock, so these are probably out of sync. Try doing Date and Hwclock
Tilghman Lesher
2010-Apr-13 18:57 UTC
[asterisk-users] Time variables in system application
On Tuesday 13 April 2010 13:27:30 Danny Nicholas wrote:> You are apparently in U.S. Central Time zone. Asterisk uses the hardware > clockWhat makes you think Asterisk uses the hardware clock? -- Tilghman Lesher Digium, Inc. | Senior Software Developer twitter: Corydon76 | IRC: Corydon76-dig (Freenode) Check us out at: www.digium.com & www.asterisk.org