Time in GUI is displayed incorrectly

From Kolmisoft Wiki
Revision as of 13:52, 7 February 2012 by Admin (talk | contribs)
Jump to navigationJump to search

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?

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 statistics pages, etc. When generating invoices, reports - 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