Difference between revisions of "Time in GUI is displayed incorrectly"

From Kolmisoft Wiki
Jump to navigationJump to search
m
 
(10 intermediate revisions by one other user not shown)
Line 1: Line 1:
=Time in MOR GUI=
==System clock==
==ENV['TZ'] variable==
===Check===
If time in MOR GUI is displayed incorrectly please check /home/mor/config/environment.rb for this variable:
Check system clock:
 
date
  ENV['TZ'] = 'GMT'
Check hardware clock:
 
  hwclock
If it is present - try to comment it out.
<br><br>
===System clock is OK, hardware clock is wrong, how to fix it?===


If it is not present - try to add it
hwclock --systohc
<br><br>


==Time zone settings==
<br>
Since [[MOR_11 | MOR 11]] you can set timezone from the GUI in [[User_Details | user settings]] for each user.
<br>
This setting applies only to statistics pages, etc. When generating invoices, reports (pdf, csv) - actual server time is still used.
<br><br>
Timezone settings can be changed in /etc/sysconfig/clock:
mcedit /etc/sysconfig/clock
<br><br>
===Timezone /etc/sysconfig/clock configuration example===


Remember to restart Apache after this change:
ZONE="Europe/Vilnius"
UTC=true
ARC=false
<br><br>


/etc/init.d/httpd restart
'''An example of a correct configuration for France:'''


ZONE="Europe/Paris"
UTC=true
ARC=false
<br><br>


==System clock==
==Sync time automatically==
Check system clock:
To sync time automatically according to your time zone please check this guide: [[NTP:_Server_Time_Sync|ntp]]
date
<br><br>
Check hardware clock:
hwclock

Latest revision as of 11:31, 28 June 2012

System clock

Check

Check system clock:

date

Check hardware clock:

hwclock



System clock is OK, hardware clock is wrong, how to fix it?

hwclock --systohc



Time zone settings


Since MOR 11 you can set timezone from the GUI in user settings for each user.
This setting applies only to statistics pages, etc. When generating invoices, reports (pdf, csv) - actual server time is still used.

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



An example of a correct configuration for France:

ZONE="Europe/Paris"
UTC=true
ARC=false



Sync time automatically

To sync time automatically according to your time zone please check this guide: ntp