Difference between revisions of "How to change server time zone"

From Kolmisoft Wiki
Jump to navigationJump to search
(Created page with 'Check current time by entering date into console. '''Available timezones could be found in /usr/share/zoneinfo''' You have to choose correct timezone file and copy it on top…')
 
Line 22: Line 22:


Then '''restart asterisk''', if this doesn't help, restart your server.
Then '''restart asterisk''', if this doesn't help, restart your server.
=See also=
*[[Timezones]]

Revision as of 20:17, 27 April 2012

Check current time by entering

date

into console.

Available timezones could be found in /usr/share/zoneinfo

You have to choose correct timezone file and copy it on top of /etc/localtime file.

Example if your server is in Dublin , Europe:

cp /usr/share/zoneinfo/Europe/Dublin /etc/localtime

Next step, change hardware clock time to your localtime:

hwclock --systohc

Check hardware clock time by running:

hwclock --show

Then restart asterisk, if this doesn't help, restart your server.


See also