Link to home
Start Free TrialLog in
Avatar of Silas2
Silas2

asked on

Ubuntu Time GMT/BST

I have a virtual server with Rackspace, i've just noticed that the time is UTC 1 hour slow, (and screwed up a whole load of data!!!!) , we are GMT + 1 hour in the UK =BST (british summer time). Why would it lose 1 hour? the system has been up constantly as far as I know, and doesn't UTC take care of GMT/BST?
Avatar of arnold
arnold
Flag of United States of America image

Utc or GMT do not have the summertime/wintertime transition.
 Your TZ must be set to the correct Time or you /etc/localtime point to the correct /usr/share/timezone/ reference.  You are not actually loosing anything.
If your code is correctly sets the timezones, the data will be reflected correctly provided your date fields are populated on the server versus data from users.

If date data is user provided, you will have a disparity/inconsistency.
Avatar of Silas2
Silas2

ASKER

What seems weird is that it has been ok without any intervention then all of a sudden it's gone back 1hr , its been BST for 6months now, and the box was right before.
ASKER CERTIFIED SOLUTION
Avatar of arnold
arnold
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Silas2

ASKER

Sorry, I'm an Ubuntu newbie. echo $TZ is returning nothing...
TZ is an environment variable can be set on a per session basis.

In your case, the timezone that is used/pointed to by /etc/localtime is what controls.
date
TZ="BST"
date
Please post the output from the items above?