I set my system clocks to UTC, then configure the local clock to
whatever the local timezone.
If I'm doing anything like centralized logging, it's nice have
everything in UTC and the convert the time stamps to local if needed /
wanted.
I'd also like to hear what others do here.
-jon
For ubuntu I do the following, which is pretty much what the GUI tool
does.(I think most other distros would be exactly the same)
file {
"/etc/localtime":
ensure => "/usr/share/zoneinfo/Australia/Sydney"
}
file {
"/etc/timezone":
content => "Australia/Sydney\n",
}
file {
"/etc/default/locale":
content => "LANG=\"en_AU.UTF-8\"\nLANGUAGE=\"en_AU:en\"\n"
}
> Slightly off topic:
>
> What is the convention for setting timezones? Set them based on the
> servers phsyical location? On the admin's location? Clients
> location? Ideas?
So IMHO the critial thing is that all your servers are on the same
timezone no matter where they are in the world. This simply makes it
easier when trying to compare logs on different servers when they are
interacting with each other.
As far as picking which time zone it depends on where all your team
is. For myself all our admins are in Sydney/Australia so we set
everything to that timezone. If you are larger and have admins in
multiple timezones then UTC is probably best.
Cheers,
--
John
Blog http://www.inodes.org/blog
OLPC Friends http://olpcfriends.org