What is odd, I just tried W4PLT's node and it is reporting correctly. Here is his system.conf file Hostname=W4PLT ifconfig_type=dhcp TimeZone=-5.0 echolinkenable=0 aprsenable=0 Last login: Mon Aug 15 20:41:48 2011 [root@W4PLT ~]# date Mon Aug 22 18:51:51 EDT 2011 [root@W4PLT ~]# asterisk -r Asterisk , Copyright (C) 1999 - 2008 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk currently running on W4PLT (pid = 2327) Verbosity is at least 3 W4PLT*CLI> rpt fun 27901 *81 W4PLT*CLI> rpt fun 27901 *9041 W4PLT*CLI> rpt fun 27901 *81 -- Hungup 'Zap/pseudo-2101939038' -- <Zap/pseudo-617879378> Playing 'rpt/goodevening' (language 'en') -- <Zap/pseudo-617879378> Playing 'rpt/thetimeis' (language 'en') -- <Zap/pseudo-617879378> Playing 'digits/6' (language 'en') -- <Zap/pseudo-617879378> Playing 'digits/50' (language 'en') -- <Zap/pseudo-617879378> Playing 'digits/2' (language 'en') -- <Zap/pseudo-617879378> Playing 'digits/p-m' (language 'en') -- Hungup 'Zap/pseudo-617879378' -----Original Message----- From: Ken [mailto:ke2n@cs.com] Sent: Monday, August 22, 2011 5:27 PM To: 'Paul J. Agamata'; 'Lu Vencl' Cc: 'John Boteler'; app_rpt-users@ohnosec.org Subject: the answer: Time Zone issue Hmmm - that would account for 4 hours alright Have a look at this http://www.redhat.com/advice/tips/timezone.html seems that there is a setting where you tell the OS what the BIOS is using. It looks like the default on CENTOS/Asterisk is UTC=true As the referenced article says ... this setting and your BIOS must match. GL Ken
-----Original Message-----
From: Paul J. Agamata [mailto:Sysman@Xceptions.COM]
Sent: Monday, August 22, 2011 2:34 PM
To: Lu Vencl
Cc: John Boteler; Ken
Subject: Re: [App_rpt-users] Time Zone issue
Do the conversion to UTC time, from the local time now... Is it
correct?
NTP's calculations are based of UTC time to you TZ.
On 8/22/11 8:01 AM, "Lu Vencl" <vencl@att.net> wrote:
Local time. Is that not the correct way?
Sent from my iPhone, Lu Vencl
On Aug 22, 2011, at 1:42 PM, "Paul J. Agamata" <Sysman@Xceptions.COM>
wrote:
Is your BIOS time set in UTC or Local?
_______________________________
Paul Agamata
Sysman@Xceptions.COM
________________________________________
From: John Boteler [bote@botecomm.com]
Sent: Monday, August 22, 2011 2:26 AM
To: 'Lu Vencl'; 'Ken'
Cc: Paul J. Agamata
Subject: RE: [App_rpt-users] Time Zone issue
OK, then the Allstar process must be running under some other
account
than root. This other account must have its time zone set differently
than New York.
Bote
From: Lu Vencl [mailto:vencl@att.net]
Sent: Monday, 22 August, 2011 07:54
To: 'John Boteler'; 'Ken'
Cc: 'Paul J. Agamata'
Subject: RE: [App_rpt-users] Time Zone issue
[root@KA4EPS etc]# env
HOSTNAME=KA4EPS
TERM=vt100
SHELL=/bin/bash
HISTSIZE=1000
SSH_CLIENT=99.45.143.77 63835 222
SSH_TTY=/dev/pts/0
USER=root
LS_COLORS=no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:bd=40;33;01
:cd=
40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=01;32:*.cmd=01;32:*.exe=01;
32:*
.com=01;32:*.btm=01;32:*.bat=01;32:*.sh=01;32:*.csh=01;32:*.tar=01;31
:*.t
gz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.
Z=01
;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tz=01;31:*.rpm=01;31:*.cpio=0
1;31
:*.jpg=01;35:*.gif=01;35:*.bmp=01;35:*.xbm=01;35:*.xpm=01;35:*.png=01
;35:
*.tif=01;35:
SSH_AUTH_SOCK=/tmp/ssh-BIMHQ13706/agent.13706
MAIL=/var/spool/mail/root
PATH=/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/
bin:
/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
INPUTRC=/etc/inputrc
PWD=/etc
LANG=en_US.UTF-8
TZ=America/NewYork
SHLVL=1
HOME=/root
LOGNAME=root
CVS_RSH=ssh
SSH_CONNECTION=99.45.143.77 63835 192.168.8.107 222
LESSOPEN=|/usr/bin/lesspipe.sh %s
G_BROKEN_FILENAMES=1
_=/bin/env
OLDPWD=/etc
From: John Boteler [mailto:bote@botecomm.com]
Sent: Monday, August 22, 2011 7:54 AM
To: 'Lu Vencl'; 'Ken'
Cc: 'Paul J. Agamata'
Subject: RE: [App_rpt-users] Time Zone issue
The operating system stores the time as the number of seconds since
The
Epoch. The TZ (time zone) environment variable tells applications
what
differential to apply to this system time to translate the displayed
time to whatever the local time zone is desired. Different accounts
can
employ different time zones for their needs.
I'm not familiar with the method of creating a link to a time zone
file, which is why I suggested examining the TZ environment variable
to
see what it is set to. Just to view it with your eyeballs and see
what
it says. Who knows? Maybe the answer lies there?
The command is either
env
or
set
It will spew out a ton of parameters, so maybe pipe it through
grep TZ
or 'time' or 'New York' or whatever feels good. It beats typing date
over and over to find the same result, though.
Bote
From: Lu Vencl [mailto:vencl@att.net]
Sent: Monday, 22 August, 2011 07:35
To: 'Ken'
Cc: 'Paul J. Agamata'; 'John Boteler'
Subject: RE: [App_rpt-users] Time Zone issue
Yes, the time reported by the date command is correct. See below
highlighted in RED.
Jim announced the latest SVN a few weeks ago so that is why I have a
later version. But this issue was here since day 1. Just low on my
priority but would like to fix it as some point.
From: Ken [mailto:ke2n@cs.com]
Sent: Monday, August 22, 2011 4:50 AM
To: 'Lu Vencl'
Cc: 'Paul J. Agamata'; 'John Boteler'
Subject: RE: [App_rpt-users] Time Zone issue
Interesting
You have a later version than I do (mine is 281)
Sure looks like the *81 routine is getting the wrong date but it¹s
not pacific timeŠ its 4 hours difference.
Is the system itself (Linux) on the right time?
Ken
From: Lu Vencl [mailto:vencl@att.net]
Sent: Sunday, August 21, 2011 9:39 PM
To: 'Ken'
Cc: 'Paul J. Agamata'; 'John Boteler'
Subject: RE: [App_rpt-users] Time Zone issue
Ken,
I am using Ver 285
Am I doing something wrong here? See below..
-- Hungup 'Zap/pseudo-1680839429'
KA4EPS*CLI> exit
[root@KA4EPS ~]# cd /etc
[root@KA4EPS etc]# cp localtime localtime.orig
cp: overwrite `localtime.orig'? yes <<I enter Yes here. Tried both
ways, Y and Yes
[root@KA4EPS etc]# ln -sf /usr/share/zoneinfo/America/New_York
localtime
[root@KA4EPS etc]# astres.sh
Restarting Asterisk...
[root@KA4EPS etc]# asterisk -r
Asterisk , Copyright (C) 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show
warranty'
for details.
This is free software, with components licensed under the GNU
General
Public
License version 2 and other licenses; you are welcome to
redistribute
it under
certain conditions. Type 'core show license' for details.
=====================================================================
====
Sun Aug 21 21:38:04 America/NewYork 2011
[root@KA4EPS etc]# asterisk -r
Asterisk , Copyright (C) 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show
warranty'
for details.
This is free software, with components licensed under the GNU
General
Public
License version 2 and other licenses; you are welcome to
redistribute
it under
certain conditions. Type 'core show license' for details.
=====================================================================
====
Connected to Asterisk currently running on KA4EPS (pid = 2351)
Verbosity is at least 3
KA4EPS*CLI> rpt fun 27869 *81
-- <Zap/pseudo-1336490768> Playing 'rpt/goodafternoon' (language
'en')
-- <Zap/pseudo-1336490768> Playing 'rpt/thetimeis' (language
'en')
-- <Zap/pseudo-1336490768> Playing 'digits/5' (language 'en')
-- <Zap/pseudo-1336490768> Playing 'digits/30' (language 'en')
-- <Zap/pseudo-1336490768> Playing 'digits/8' (language 'en')
-- <Zap/pseudo-1336490768> Playing 'digits/p-m' (language 'en')
-- Hungup 'Zap/pseudo-1336490768'
KA4EPS*CLI>exit
[root@KA4EPS etc]# date
Sun Aug 21 21:40:14 America/NewYork 2011
[root@KA4EPS etc]#
From: Ken [mailto:ke2n@cs.com]
Sent: Sunday, August 21, 2011 2:29 PM
To: 'Lu Vencl'
Subject: RE: [App_rpt-users] Time Zone issue
Yeah Š is your later than mine
In the standard config *82 gets you the version number
Ken
From: Lu Vencl [mailto:vencl@att.net]
Sent: Sunday, August 21, 2011 1:46 PM
To: Ken
Subject: Re: [App_rpt-users] Time Zone issue
Ken. I am running the latest svn. Jus
Sent from my iPhone, Lu Vencl
On Aug 21, 2011, at 11:11 AM, "Ken"
<ke2n@cs.com<mailto:ke2n@cs.com>>
wrote:
Lu you did not say what version you are running
Here, version 281 works fine
You say east coast time, but it¹s actually New_York
cd /etc
cp localtime localtime.orig
ln -sf /usr/share/zoneinfo/America/New_York localtime
Ken
From:
app_rpt-users-bounces@ohnosec.org<mailto:app_rpt-users-
bounces@ohnosec.or
g> [mailto:app_rpt-users-bounces@ohnosec.org] On Behalf Of Lu Vencl
Sent: Sunday, August 21, 2011 10:40 AM
To: app_rpt-users@ohnosec.org<mailto:app_rpt-users@ohnosec.org>
Subject: [App_rpt-users] Time Zone issue
I think there MIGHT be a bug with regards to the time zone setting
for
the East Coast.
All of my nodes read the correct time when I type date from root,
but
Asterisk is reporting 4 hours behind.
Example:
Aug 21 06:40:36] NOTICE[2818]: chan_echolink.c:2484 do_el_directory:
Directory pgm done downloading(partial,compressed), 342 records
KA4EPS*CLI> exit
[root@KA4EPS ~]# date
Sun Aug 21 10:40:52 America/NewYork 2011
[root@KA4EPS ~]#
I think I once changed it to Central Time zone and it then became 1
hour behind as expected if I recall correctly.
Not sure what to change here if someone could offer guidance.
I looked at system.conf and it shows TimeZone=-5.0 which would be
correct.
Or am I supposed to set the system clock to GMT perhaps?
Thanks
KA4EPS