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?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.