thanks i'll keep that in mind.<br><br><div class="gmail_quote">2010/6/2 Roderick A. Anderson <span dir="ltr"><<a href="mailto:raanders@cyber-office.net">raanders@cyber-office.net</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">khalid touati wrote:<br>
> Hi Guys,<br>
> for people who may have the same issue:<br>
> i was just not using STRFTIME the right way, after consulting docs, i'm<br>
> using it like this:<br>
> exten =><br>
> 8888,n,Set(FAXFILENOEXT=/var/spool/asterisk/fax/${STRFTIME(${EPOCH},America/New_York,%F_%T)})<br>
><br>
> instead of this:<br>
> exten =><br>
> 8888,n,Set(FAXFILENOEXT=/var/spool/asterisk/fax/${STRFTIME(${EPOCH},GMT-5,%F_%T)})<br>
> and it's displaying the right time now!!<br>
<br>
</div>You might need to put America/New_York in quotes -- 'America/New_York'<br>
or "America/New_York".<br>
<br>
This based on my experience with the Perl DateTime module. Of course<br>
YMMV and you have it working now. :-)<br>
<br>
<br>
\\||/<br>
Rod<br>
--<br>
><br>
> 2010/4/13 Danny Nicholas <<a href="mailto:danny@debsinc.com">danny@debsinc.com</a> <mailto:<a href="mailto:danny@debsinc.com">danny@debsinc.com</a>>><br>
<div><div></div><div class="h5">><br>
> My "derailed" train of thought came from OP's mention of Centos 5.3<br>
> - I have<br>
> to do a "hwclock -s" on my 5.3 box at least daily to keep a<br>
> reasonable time.<br>
><br>
> -----Original Message-----<br>
> From: <a href="mailto:asterisk-users-bounces@lists.digium.com">asterisk-users-bounces@lists.digium.com</a><br>
> <mailto:<a href="mailto:asterisk-users-bounces@lists.digium.com">asterisk-users-bounces@lists.digium.com</a>><br>
> [mailto:<a href="mailto:asterisk-users-bounces@lists.digium.com">asterisk-users-bounces@lists.digium.com</a><br>
> <mailto:<a href="mailto:asterisk-users-bounces@lists.digium.com">asterisk-users-bounces@lists.digium.com</a>>] On Behalf Of Tilghman<br>
> Lesher<br>
> Sent: Tuesday, April 13, 2010 2:58 PM<br>
> To: Asterisk Users Mailing List - Non-Commercial Discussion<br>
> Subject: Re: [asterisk-users] Time variables in system application<br>
><br>
> On Tuesday 13 April 2010 14:00:36 Danny Nicholas wrote:<br>
> > Just what I thought - guess that's the X'th time I wuz wrong today.<br>
><br>
> The only difference between what I think you're calling the system time<br>
> (output of date) and Asterisk is that Asterisk uses a different<br>
> (internal)<br>
> library to convert the epoch-based time into a broken-out date. Both<br>
> are using exactly the same value internally, however. Hardware clock is<br>
> generally how system time is set initially at boot, though with NTP<br>
> servers<br>
> and system skew, it's possible for the two values to drift apart<br>
> over time.<br>
><br>
> --<br>
> Tilghman Lesher<br>
> Digium, Inc. | Senior Software Developer<br>
> twitter: Corydon76 | IRC: Corydon76-dig (Freenode)<br>
</div></div>> Check us out at: <a href="http://www.digium.com" target="_blank">www.digium.com</a> <<a href="http://www.digium.com" target="_blank">http://www.digium.com</a>> &<br>
> <a href="http://www.asterisk.org" target="_blank">www.asterisk.org</a> <<a href="http://www.asterisk.org" target="_blank">http://www.asterisk.org</a>><br>
<div class="im">><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>
><br>
><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>
><br>
><br>
><br>
><br>
> --<br>
> Abdullah<br>
><br>
<br>
<br>
</div>--<br>
<div><div></div><div class="h5">_____________________________________________________________________<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>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Abdullah<br>