<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">>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 </span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">>Date and</span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">>Hwclock</span></font></p><p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">>From a command prompt.</span></font></p>
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!<br><br>[root@pbx1 bin]# hwclock<br>
Tue 13 Apr 2010 02:40:16 PM EDT -0.000607 seconds<br>[root@pbx1 bin]# date<br>Tue Apr 13 14:41:11 EDT 2010<br><br><div class="gmail_quote"><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div link="blue" vlink="purple" lang="EN-US"><div><p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </span></font></p>
<div>
<div class="MsoNormal" style="text-align: center;" align="center"><font size="3" face="Times New Roman"><span style="font-size: 12pt;">
<hr size="2" width="100%" align="center">
</span></font></div>
<p class="MsoNormal"><b><font size="2" face="Tahoma"><span style="font-size: 10pt; font-family: Tahoma; font-weight: bold;">From:</span></font></b><font size="2" face="Tahoma"><span style="font-size: 10pt; font-family: Tahoma;">
<a href="mailto:asterisk-users-bounces@lists.digium.com" target="_blank">asterisk-users-bounces@lists.digium.com</a>
[mailto:<a href="mailto:asterisk-users-bounces@lists.digium.com" target="_blank">asterisk-users-bounces@lists.digium.com</a>] <b><span style="font-weight: bold;">On Behalf Of </span></b>khalid touati<br>
<b><span style="font-weight: bold;">Sent:</span></b> Tuesday, April 13, 2010 1:08
PM<br>
<b><span style="font-weight: bold;">To:</span></b> Asterisk Users Mailing List -
Non-Commercial Discussion<br>
<b><span style="font-weight: bold;">Subject:</span></b> [asterisk-users] Time
variables in system application</span></font></p>
</div><div class="im">
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size: 12pt;"> </span></font></p>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size: 12pt;">Hi Guys,<br>
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?<br clear="all">
<br>
-- <br>
Abdullah</span></font></p>
</div></div>
</div>
<br>--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br><br clear="all"><br>-- <br>Abdullah<br>