No subject
Sun Jul 19 19:54:31 CDT 2009
_____
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
------=_NextPart_000_0064_01CADB0D.118224C0
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns=3D"http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<meta name=3DGenerator content=3D"Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-reply;
font-family:Arial;
color:navy;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
{page:Section1;}
-->
</style>
</head>
<body lang=3DEN-US link=3Dblue vlink=3Dpurple>
<div class=3DSection1>
<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;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 =
<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Date =
and<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Hwclock<o:p></o:p></span></font></p>=
<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>From a command =
prompt.<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<div>
<div class=3DMsoNormal align=3Dcenter style=3D'text-align:center'><font =
size=3D3
face=3D"Times New Roman"><span style=3D'font-size:12.0pt'>
<hr size=3D2 width=3D"100%" align=3Dcenter tabindex=3D-1>
</span></font></div>
<p class=3DMsoNormal><b><font size=3D2 face=3DTahoma><span =
style=3D'font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font =
size=3D2
face=3DTahoma><span style=3D'font-size:10.0pt;font-family:Tahoma'>
asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] <b><span =
style=3D'font-weight:
bold'>On Behalf Of </span></b>khalid touati<br>
<b><span style=3D'font-weight:bold'>Sent:</span></b> Tuesday, April 13, =
2010 1:08
PM<br>
<b><span style=3D'font-weight:bold'>To:</span></b> Asterisk Users =
Mailing List -
Non-Commercial Discussion<br>
<b><span style=3D'font-weight:bold'>Subject:</span></b> [asterisk-users] =
Time
variables in system application</span></font><o:p></o:p></p>
</div>
<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'><o:p> </o:p></span></font></p>
<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'>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=3Dall>
<br>
-- <br>
Abdullah<o:p></o:p></span></font></p>
</div>
</body>
</html>
------=_NextPart_000_0064_01CADB0D.118224C0--
More information about the asterisk-users
mailing list