[asterisk-users] wrong time retrieved from system command
Kevin Keane
subscription at kkeane.com
Wed Mar 23 03:52:43 CDT 2011
Tilghman,
Could you remove your Reply-By header, please? Your deadline is two months in the past (and in any case, list postings really shouldn't have a reply deadline at all)
Here is your Reply-By header from your March 21 email:
Reply-By: Wed, 19 Jan 2011 16:20:00 -0600
Thanks!
-----Original Message-----
From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Tilghman Lesher
Sent: Monday, March 21, 2011 3:54 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] wrong time retrieved from system command
On Monday 21 March 2011 06:45:37 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.
Do you have an file (or symlink) in /usr/share/zoneinfo called "GMT+8"? I certainly don't, and I'm not running anything different from the standard set of zone files. If you don't have that entry, then the timezone code will use UTC (i.e. no local differentiations).
--
Tilghman
--
_____________________________________________________________________
-- 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
More information about the asterisk-users
mailing list