Thanks,<br><br>You give me the right answer.<br><br><div class="gmail_quote">On Mon, Mar 21, 2011 at 10:19 PM, Barry Miller <span dir="ltr"><<a href="mailto:asterisk-users@notanet.net">asterisk-users@notanet.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><div></div><div class="h5">On Mon, Mar 21, 2011 at 07:45:37PM +0800, asterisk asterisk wrote:<br>
> ${STRFTIME(${EPOCH},GMT+8,%G%m%d-%H%M%S)}<br>
><br>
> I use the above command to get the system date and time<br>
><br>
> it returns 20110321-034329<br>
><br>
> but it is exactly 8 hours early than the system time when I type date in<br>
> linux terminal<br>
><br>
> Mon Mar 21 19:43:35 HKT 2011<br>
<br>
</div></div>Have you tried "${STRFTIME(${EPOCH},Hongkong,%G%m%d-%H%M%S)}" ?<br>
<br>
$ date ; TZ=UTC date ; TZ=Hongkong date<br>
Mon Mar 21 10:13:31 EDT 2011<br>
Mon Mar 21 14:13:31 UTC 2011<br>
Mon Mar 21 22:13:31 HKT 2011<br>
<br>
--<br>
<font color="#888888">Barry<br>
</font><div><div></div><div class="h5"><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>
</div></div></blockquote></div><br>