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?
Silas2Asked:
Who is Participating?
 
arnoldCommented:
When you you are in the shell, and run date, what is returned for the timezone?
echo $TZ

Relink /etc/localtime to the correct /usr/share/timezone/ file for your locale.
0
 
arnoldCommented:
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.
0
 
Silas2Author Commented:
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.
0
 
Silas2Author Commented:
Sorry, I'm an Ubuntu newbie. echo $TZ is returning nothing...
0
 
arnoldCommented:
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?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.