How to set time for Asterisk?

Hi, i have wrote a dialplan to when client hangup display the time, like this

exten =>_XXX,1,Answer()
exten =>_XXX,2,Dial(SIP/206)
exten =>h,1,NoOp(Hangup at: [color=#00BF00]${STRFTIME(${EPOCH},GMT-8,%I:%M:%S %p)}[/color])

But the asterisk says it was: 06:41:30 PM
But if i execute this in the Terminal:
date
It displays Wed Aug 3 10:41:38 UTC 2011

I was thinking asterisk use the same date, time like the System.

How to fix that?



Change here the GMT-8 to your correct timezone

Change here the GMT-8 to your correct timezone

Thanks, im going to test it

where was change made?

Where it says GMT-8 in the original!!!

I’m having a likewise issue. asterisk log’s time change automatically, after a few days, to GMT whereas server time remains in PST. any idea what can be the reason?