Re: [App_rpt-users] Time 6 hours fast
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@midnighteng.com To: app_rpt-users@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@crompton.com> Date: Thu, December 12, 2013 10:13 pm To: "mike@midnighteng.com" <mike@midnighteng.com> Cc: "app_rpt-users@ohnosec.org" <app_rpt-users@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@midnighteng.com To: app_rpt-users@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@earthlink.net> Date: Thu, December 12, 2013 5:46 pm To: <app_rpt-users@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@ohnosec.org http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users _______________________________________________ App_rpt-users mailing list App_rpt-users@ohnosec.org http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users _______________________________________________ App_rpt-users mailing list App_rpt-users@ohnosec.org http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users
Mike, setting the UTC=false will work as well as long as you transfer the calibrated time that is current set correctly on the system back to your RTC via the ‘hwclock -systohc’ command to write the corrected system time (UTC or Local) back to the BIOS RTC. Setting TZ variable will not cover some of the OS components for proper housekeeping. One of the biggest things that Doug needs to be concerned about is getting the proper time in the syslogs. Also, it may affect CRONTAB entries if something is set to be fired off at a predetermined time. Most of my clients have Unix/Linux based OS’s, I’ve standardized in setting UTC time because it is what Unix/Linux uses natively. _______________________________ Paul J. Agamata WH6FM Sysman@Xceptions.COM Hilo, Hawaii From: app_rpt-users-bounces@ohnosec.org [mailto:app_rpt-users-bounces@ohnosec.org] On Behalf Of mike@midnighteng.com Sent: Thursday, December 12, 2013 6:08 PM To: app_rpt-users@ohnosec.org 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@crompton.com <mailto:doug@crompton.com> > Date: Thu, December 12, 2013 10:13 pm To: "mike@midnighteng.com <mailto:mike@midnighteng.com> " <mike@midnighteng.com <mailto:mike@midnighteng.com> > Cc: "app_rpt-users@ohnosec.org <mailto:app_rpt-users@ohnosec.org> " <app_rpt-users@ohnosec.org <mailto:app_rpt-users@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@midnighteng.com <mailto:mike@midnighteng.com> To: app_rpt-users@ohnosec.org <mailto:app_rpt-users@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@earthlink.net <mailto:hromano@earthlink.net> > Date: Thu, December 12, 2013 5:46 pm To: <app_rpt-users@ohnosec.org <mailto:app_rpt-users@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@ohnosec.org <mailto:App_rpt-users@ohnosec.org> http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users _______________________________________________ App_rpt-users mailing list App_rpt-users@ohnosec.org <mailto:App_rpt-users@ohnosec.org> http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users
participants (3)
-
Doug Crompton -
mike@midnighteng.com -
Paul J. Agamata