lkml.org 
[lkml]   [2003]   [May]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: Wrong clock initialization
    george anzinger wrote:
    >
    > David Balazic wrote:
    > > Hi!
    > >
    > > When the kernel is booted ( ia32 version at least ) , it reads
    > > the time from from the hardware CMOS clock , _assumes_ it is in
    > > UTC and set the system time to it.
    > >
    > > As almost nobody runs their clock in UTC, this means that the system
    > > is running on wrong time until some userspace tool corrects it.
    > >
    > > This can lead to situtation when time goes backwards :
    > >
    > > timezone is 2hours east of UTC.
    > > UTC time : 20:00
    > > local time : 22:00
    > >
    > > System time between boot and userspace fix : 22:00UTC
    > > System time after fix : 20:00UTC
    > >
    > > Comments ?
    >
    > During shut down my system "says" it is setting the CMOS clock from
    > the kernel clock. I would expect this to correct the problem. Is
    > this a distro thing?

    The time is properly converted first to be localtime, if your CMOS
    is localtime. So this does not fix anything.

    >
    > In any case, this would seem to make the problem go away after the
    > first shutdown (if you don't dual boot with something other than Linux :).


    --
    David Balazic
    --------------
    "Be excellent to each other." - Bill S. Preston, Esq., & "Ted" Theodore
    Logan
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - - -
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-03-22 13:35    [W:3.023 / U:0.004 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site