Re: timezone setting



On Tue, 2009-03-24 at 19:51 +0000, Aart Koelewijn wrote:
On Tue, 24 Mar 2009 15:46:37 +0000, Nik N wrote:

... Well we used to call it [Greenwich] Mean Time. So just set the time
to London England about and it will be right.

(Well, my users might then conclude that the server is actually located
in Britain; this would definitely rub them the wrong way! :)

As somebody else correctly noticed, if that was done, the issue of
"daylight saving" would again invalidate the idea of ALL geographically
dispersed but cooperating computers running on the same time.


Well, afaik the Linux kernel keeps the systemtime in UTC. This is then
corrected by the value in /etc/timezone to the local time. I wonder, but
it might be that when you delete/rename /etc/timezone the only known time
in your computer might be utc, it will not know how to "correct" it to
local time.

All internal timestamps are kept in UTC. This has been the case since
Unix was invented. All the timezone file does is display the time in
whatever timezone you want with all the historic idiosyncracies of each
timezone accounted for. The file /etc/localtime is what sets the local
time information. It is a copy of one of the zoneinfo files found
in /usr/share/zoneinfo. /etc/timezone has the relative pathname of the
zoneinfo file currently in use. If you remove /etc/localtime, the
timezone is set by default to UTC.
--
Smoot Carl-Mitchell
Computer Systems and
Network Consultant
smoot@xxxxxxx
+1 480 922 7313
cell: +1 602 421 9005

--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users



Relevant Pages

  • Re: UTCNow <> GMT
    ... Unless you are working in the actual GMT timezone,, then forget about GMT. ... Store your timestamps as 'local time' in relation to the defined timezone of the computer along with some information about the timezone. ... If you do this you need to store the timezone information in such a manner that a 'local time' in say, Brazil, can be correctly displayed as a 'local time' in, say, India. ... This entails converting the Brazilian value to UTC and then converting the result to the appropriate Indian value. ...
    (microsoft.public.dotnet.languages.vb)
  • Setting windows/win32 timezone from python
    ... an arbitrary timezone. ... To do this on UNIX is relatively straightforward by setting the TZ ... the mapping from utc -> local time won't have the correct ...
    (comp.lang.python)
  • Re: Can or should the NTP protocol eventually serve timezone data?
    ... How you torture UTC to get your preferred local time is entirely up to you. ... Kludging local timezone conversions into the NTP protocol somehow would be a nightmare if you could persuade anyone to do it! ...
    (comp.protocols.time.ntp)
  • Re: solar local time
    ... To convert a time in UTC to a local time in the America/New_York timezone, ... include TZInfo ... Note that the Time returned will look like it is UTC. ...
    (comp.lang.ruby)
  • Re: Requiring a date be entered as mm/dd/yy on a form field.
    ... specify that they cannot calculate to that precision. ... Furthermore, UTC ... use whatever standard they are given. ... Most areas have some name that they use to refer to their timezone. ...
    (microsoft.public.scripting.jscript)

Loading