>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! [r...@pbx1 bin]# hwclock Tue 13 Apr 2010 02:40:16 PM EDT -0.000607 seconds [r...@pbx1 bin]# date Tue Apr 13 14:41:11 EDT 2010 > > > ------------------------------ > > *From:* asterisk-users-boun...@lists.digium.com [mailto: > asterisk-users-boun...@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
-- _____________________________________________________________________ -- 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