[asterisk-users] wrong time retrieved from system command

Ishfaq Malik ish at pack-net.co.uk
Mon Mar 21 07:04:42 CDT 2011


what do you get when you do

${STRFTIME(${EPOCH},,%G%m%d-%H%M%S)}

?

Ish

On Mon, 2011-03-21 at 19:45 +0800, asterisk asterisk wrote:
> ${STRFTIME(${EPOCH},GMT+8,%G%m%d-%H%M%S)}
> 
> I use the above command to get the system date and time
> 
> it returns 20110321-034329
> 
> but it is exactly 8 hours early than the system time when I type date
> in linux terminal
> 
> Mon Mar 21 19:43:35 HKT 2011
> 
> I am looking for help.
> 
> CK
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
>                http://www.asterisk.org/hello
> 
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users

-- 
Ishfaq Malik
Software Developer
PackNet Ltd

Office:   0161 660 3062




More information about the asterisk-users mailing list