Mathew -
On Sat, Mar 06, 2010 at 12:31:36PM -0000, Mathew Newton wrote:
I have been busy migrating several of my services from
my home server to
the new VPS and have noticed a slight difference in representation in time
- the use of UTC versus GMT - in areas such as logs, application variables
(Apache date-related SSI's for example).
My question is, can I change the system clock from UTC to GMT and, if so,
how? I am aware that I could tweak most applications (e.g. Apache's config
timefmt command) however I would prefer to change this in only one place
if at all possible.
Do you actually mean GMT here, or do you mean "local UK time"? The
difference between UTC and GMT is small for most practical purposes
(the difference is always kept to less than 0.9s), so if you actually
want GMT, don't bother changing anything.
I suspect that what you actually mean is "local UK time" -- i.e.
UTC+0 in winter, and UTC+1 for daylight saving time in the summer.
Setting this will vary depending on your distribution, but in Debian
(and by extension, I assume Ubuntu) by running "dpkg-reconfigure
tzdata". This will prompt you for the new timezone and configure the
system to use it.
The time-keeping issues that some people have with VM guests are
entirely independent of this configuration. Your VM will keep the
same drift from the host's clock that it always had.
Hugo.
--
=== Hugo Mills: hugo@... carfax.org.uk |
darksatanic.net | lug.org.uk ===
PGP key: 515C238D from
wwwkeys.eu.pgp.net or
http://www.carfax.org.uk
--- I spent most of my money on drink, women and fast cars. The ---
rest I wasted. -- James Hunt