how to adjust time

lonen
Posts: 19
Member Since:
2006-08-02

I can't synch trixbox time with Centos time on my server. Even though centos has the correct time, Trixbox is 3 hours slow. I suspect Trixbox might be set up on the wrong time zone, but I can't seem to find the setting. Any ideas?



w5waf
Posts: 711
Member Since:
2006-06-09
This has been showing up

This has been showing up more and more. But no rhyme or reason.

I've done the following, and the time straightens out. By the way, it's giving you the time in GMT.

1. Put the TZ variable in /etc/profile. (set TZ=US/Central)
2. Instead of using a symbolic link for /etc/localtime I copied
/usr/share/zoneinfo/US/Central to /etc/localtime.
3. Verified the ZONE setting in /etc/sysconfig/clock.
4. Reboot the server
5. *60 to check the time
6. If still off "amportal restart"

Of course you replace the US/Central with your timezone

--

Bill Ford - FtOCC
City of Vicksburg
www.vicksburg.org



lonen
Posts: 19
Member Since:
2006-08-02
Thanks for your help

Thanks for your help Bill.

1. Put the TZ variable in /etc/profile. (set TZ=US/Central)
>>>How do i do this? I have a folder named profile.d that has a bumch of .sh and .csh files in it? Am I in the right place?

2. Instead of using a symbolic link for /etc/localtime I copied
/usr/share/zoneinfo/US/Central to /etc/localtime.

>>>I do not have an /etc/localtime folder???

3. Verified the ZONE setting in /etc/sysconfig/clock.
>>>Yes this looks accurate, I have America/New York.

Thanks again.



w5waf
Posts: 711
Member Since:
2006-06-09
profile is a text file in

profile is a text file in the /etc folder not a directory. Ditto localtime

1. nano -w /etc/profile -- Put TZ="America/New York" as the second line. Before doing this, do a cp /etc/profile /etc/profile.old so you can go back in case anything goes wrong

2. rm -f /etc/localtime
3. cp /usr/share/zonenifo/America/New York /etc/localtime
4. Reboot the server
5. Dial *60 and see if the time is correct.
6 If not correct, do amportal restart from the unix prompt
7. Do 5 Again.

If this doesn't work, replace America/New York with US/Eastern as in above and also in the /etc/sysconfig/clock file. Proceed to step 4.

--

Bill Ford - FtOCC
City of Vicksburg
www.vicksburg.org



shijujoe
Posts: 3
Member Since:
2007-08-07
Thanks

I was facing the same problem , voice mail messages were showing incorrect time stamps , I was able to fix that following this thread.
Thanx mate..

Regards
Shiju V.Joseph



liux
Posts: 56
Member Since:
2006-12-06
Thanks the the tip

Using Trixbox 2.0 this tip fixed my mal-adjusted time setting.



playyas4u
Posts: 74
Member Since:
2006-09-26
Error Message during step 3

I tried to solve my time problem using the steps above but when I try to do step 3, I get an error message saying there is now such file or directory??? Any help is very much welcome. I am not a heavy linux user, just a beginner. So if there is no directory will this screw up my system after doing all the other steps? How do I revert back.



Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.