thank you Barry, you're right, it is also working.<br>well, happy that i have a bunch of choices that work (after wrong output).<br>thanks for all! <br><br><div class="gmail_quote">2010/6/2 Barry Miller <span dir="ltr"><<a href="mailto:asterisk-users@notanet.net">asterisk-users@notanet.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">On Wed, Jun 02, 2010 at 10:26:12AM -0400, 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>If all you want is your system's idea of the current local time, you can<br>
simplify it to:<br>
<br>
exten =><br>
8888,n,Set(FAXFILENOEXT=/var/spool/asterisk/fax/${STRFTIME(,,%F_%T)})<br>
<br>
Sorry for replying so late. I somehow missed this thread back in April.<br>
<br>
--<br>
Barry<br>
<font color="#888888"><br>
--<br>
</font><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>