[App_rpt-users] Time 6 hours fast

Doug Crompton doug at crompton.com
Fri Dec 13 06:21:56 UTC 2013


OK, The /etc/sysconfig/clock  file does not really seem to do anything and documents on the Internet seem to indicate that this file is written by some other configuration file and changes made there won't stick.

Anyhow I worked some more with Harry on this tonight and found the fix for him,

tzselect

which brings up a menu where you can select your timezone. After executing that all was well. I am not sure what it does because before executing tzselect the timezone in /etc/localtime was set correctly and the system date was correct but Asterisk had the wrong time.

I suspect all one would have to do is a 'tzselect' and not the copying of a timezone file to /etc/localtime which is shown in many places when you Google 'centos timezone'
In any event fixed.... So if you have timezone problems try running 'tzselect'

73 Doug
WA3DSP
http://www.crompton.com/hamradio


From: mike at midnighteng.com
To: app_rpt-users at ohnosec.org
Date: Thu, 12 Dec 2013 21:08:29 -0700
Subject: Re: [App_rpt-users] Time 6 hours fast


Doug,
I always had to many problems trying to maintain utc in system clock with the utc offset. app_rpt seemed to always read the raw utc time from the rtc (bios clock).
Now there may be a more appropriate way to fix this but...

My remedy was to set the system to local time a get rid of utc offsets. So it would always speak local time and I knew exactly what the computer clock was set at.

You need to edit /etc/system/clock (no extension)
ZONE="America/New_York"
UTC=false
ARC=false

While I forget where the "New_York" file is, you need to look at it to be sure it's data is correct.As I remember it, There was something wrong with mine but I did not keep the original file to say what it was.
Then set your clock to local time and it should be correct. You will need to adjust it manually for DST.
hope that sheds some light in the right direction for what you want.
...mike/kb8jnm



-------- Original Message --------

Subject: RE: [App_rpt-users] Time 6 hours fast

From: Doug Crompton <doug at crompton.com>

Date: Thu, December 12, 2013 10:13 pm

To: "mike at midnighteng.com" <mike at midnighteng.com>

Cc: "app_rpt-users at ohnosec.org" <app_rpt-users at ohnosec.org>



   I was working with Harry on this and I was stumped also. His timezone in Linux is correct and the system date command is correct. The time zone setting in asterisk system.conf is set to -5.0 which is correct for east coast US. I don't see anything else to set. He is also running ntpd.
73 Doug
WA3DSP
http://www.crompton.com/hamradio


From: mike at midnighteng.com
To: app_rpt-users at ohnosec.org
Date: Thu, 12 Dec 2013 18:14:21 -0700
Subject: Re: [App_rpt-users] Time 6 hours fast


You need to set the time zone in your linux OS to your local time zone and daylight savings flag if you want it to read back in local time.Google " set time zone linux " for some reading. It can be done a couple ways but be sure you understand implications. Make back-up copy of files before changing.

...mike/kb8jnm

   -------- Original Message --------
 Subject: [App_rpt-users] Time 6 hours fast
 From: "Harry Romano" <hromano at earthlink.net>
 Date: Thu, December 12, 2013 5:46 pm
 To: <app_rpt-users at ohnosec.org>
 
 Hello all,I have a really weird issue.  Beside me personally ,When I press *81 to have allstar say the time Its says the time but 6 hours later so if its 12 midnight it says 6 am . When I key in the date command to allstar from the terminal It gives me the correct date and time month day and est. The minutes are always correct. So I the time is 12:30 midnight it will say 6:30 am .  I also was shown how to use the crontab and that works just fine . So why does the time say its 6 hour later. Can anyone help with this issue please!!! 73 Harry  KC4RPP_______________________________________________
 App_rpt-users mailing list
 App_rpt-users at ohnosec.org
 http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users
   
_______________________________________________ App_rpt-users mailing list App_rpt-users at ohnosec.org http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users  



_______________________________________________
App_rpt-users mailing list
App_rpt-users at ohnosec.org
http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.keekles.org/pipermail/app_rpt-users/attachments/20131213/d5a0dfcb/attachment.html>


More information about the App_rpt-users mailing list