Difference between revisions of "Asterisk displays wrong time"
From Kolmisoft Wiki
Jump to navigationJump to search
Line 1: | Line 1: | ||
It has been reported, when system moves to another time (summer <-> winter) asterisk still using old time, even when time is changed in system itself. Solution: make sure you have a right time running, '''by copying correct zoneinfo file from /usr/share/zoneinfo/ to /etc/localtime''' | It has been reported, when system moves to another time (summer <-> winter) asterisk still using old time, even when time is changed in system itself. | ||
Solution: make sure you have a right time running, '''by copying correct zoneinfo file from /usr/share/zoneinfo/ to /etc/localtime''' | |||
Example: | |||
cp /usr/share/zoneinfo/Europe/Vilnius /etc/localtime | |||
ntpdate ntp.ubuntu.com | |||
This will switch system time to "Europe/Vilnius". |
Revision as of 14:00, 27 July 2009
It has been reported, when system moves to another time (summer <-> winter) asterisk still using old time, even when time is changed in system itself.
Solution: make sure you have a right time running, by copying correct zoneinfo file from /usr/share/zoneinfo/ to /etc/localtime
Example:
cp /usr/share/zoneinfo/Europe/Vilnius /etc/localtime ntpdate ntp.ubuntu.com
This will switch system time to "Europe/Vilnius".