[asterisk-users] Time variables in system application

khalid touati khalidtouati at gmail.com
Tue Apr 13 13:44:42 CDT 2010


>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

>From a command prompt.
thanks, here is the output of the two clocks you mentioned they dispaly same
info (slight diff on in 24 and other 12 format)!! if any body know what's
the issue, i will be grateful!

[root at pbx1 bin]# hwclock
Tue 13 Apr 2010 02:40:16 PM EDT  -0.000607 seconds
[root at pbx1 bin]# date
Tue Apr 13 14:41:11 EDT 2010



>
>
>  ------------------------------
>
> *From:* asterisk-users-bounces at lists.digium.com [mailto:
> asterisk-users-bounces at lists.digium.com] *On Behalf Of *khalid touati
> *Sent:* Tuesday, April 13, 2010 1:08 PM
> *To:* Asterisk Users Mailing List - Non-Commercial Discussion
> *Subject:* [asterisk-users] Time variables in system application
>
>
>
> 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
>
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
>               http://www.asterisk.org/hello
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>



-- 
Abdullah
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100413/2bb6d5da/attachment.htm 


More information about the asterisk-users mailing list