Re: set_rtc_mmss: can't update from 0 to 59

From: Russell King (rmk@arm.linux.org.uk)
Date: Tue Dec 19 2000 - 17:25:24 EST


Oliver Xymoron writes:
> On Mon, 18 Dec 2000, Russell King wrote:
> > So, why don't we update the hours and be done with it? We would have to
> > play the same game with the days of the month vs hours. Also, we don't
> > know if the CMOS clock is programmed for UTC time or not (the kernel's
> > idea of time is UTC. Your CMOS may be programmed for EST for instance).
>
> Sounds like its still broken then - there are time zones which are not
> even multiples of 60 minutes.

Correct; please examine the code and you will find the answer to this.
Specifically, look at the lines around the following comment:

        /* correct for half hour time zone */
   _____
  |_____| ------------------------------------------------- ---+---+-
  | | Russell King rmk@arm.linux.org.uk --- ---
  | | | | http://www.arm.linux.org.uk/personal/aboutme.html / / |
  | +-+-+ --- -+-
  / | THE developer of ARM Linux |+| /|\
 / | | | --- |
    +-+-+ ------------------------------------------------- /\\\ |
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Dec 23 2000 - 21:00:25 EST