Difference between revisions of "Time in GUI is displayed incorrectly"
From Kolmisoft Wiki
Jump to navigationJump to search
m (→System clock) |
m |
||
Line 13: | Line 13: | ||
/etc/init.d/httpd restart | /etc/init.d/httpd restart | ||
<br><br> | |||
==System clock== | ==System clock== | ||
===Check=== | ===Check=== | ||
Line 26: | Line 25: | ||
hwclokck --systohc | hwclokck --systohc | ||
<br><br> | <br><br> | ||
==Time zone settings== | ==Time zone settings== | ||
Timezone settings can be changed in /etc/sysconfig/clock: | Timezone settings can be changed in /etc/sysconfig/clock: | ||
mcedit /etc/sysconfig/clock | mcedit /etc/sysconfig/clock | ||
<br><br> | |||
===Timezone /etc/sysconfig/clock configuration example=== | ===Timezone /etc/sysconfig/clock configuration example=== | ||
Line 36: | Line 34: | ||
UTC=true | UTC=true | ||
ARC=false | ARC=false | ||
<br><br> | |||
==Sync time automatically== | ==Sync time automatically== | ||
To sync time automatically according to your time zone please check this guide: [[NTP:_Server_Time_Sync|ntp]] | To sync time automatically according to your time zone please check this guide: [[NTP:_Server_Time_Sync|ntp]] | ||
<br><br> |
Revision as of 13:20, 12 August 2011
Time in MOR GUI
ENV['TZ'] variable
If time in MOR GUI is displayed incorrectly please check /home/mor/config/environment.rb for this variable:
ENV['TZ'] = 'GMT'
If it is present - try to comment it out.
If it is not present - try to add it
Remember to restart Apache after this change:
/etc/init.d/httpd restart
System clock
Check
Check system clock:
date
Check hardware clock:
hwclock
System clock is OK, hardware clock is wrong, how to fix it?
hwclokck --systohc
Time zone settings
Timezone settings can be changed in /etc/sysconfig/clock:
mcedit /etc/sysconfig/clock
Timezone /etc/sysconfig/clock configuration example
ZONE="Europe/Vilnius" UTC=true ARC=false
Sync time automatically
To sync time automatically according to your time zone please check this guide: ntp