public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug time/27620] New: localtime mishandles daylight saving transitions near January 1
@ 2021-03-21 18:25 eggert at cs dot ucla.edu
  0 siblings, 0 replies; only message in thread
From: eggert at cs dot ucla.edu @ 2021-03-21 18:25 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=27620

            Bug ID: 27620
           Summary: localtime mishandles daylight saving transitions near
                    January 1
           Product: glibc
           Version: 2.32
            Status: NEW
          Severity: normal
          Priority: P2
         Component: time
          Assignee: unassigned at sourceware dot org
          Reporter: eggert at cs dot ucla.edu
  Target Milestone: ---

Created attachment 13322
  --> https://sourceware.org/bugzilla/attachment.cgi?id=13322&action=edit
Tickle glibc bug with DST transitions near January 1.

I found this while checking glibc against tzcode. When parsing a POSIX TZ
string, glibc mishandles daylight-saving transitions near January 1 at 00:00.
Apparently glibc uses the wrong year to compute the transition boundaries.

Test program transition-near-jan-1.c attached. It succeeds (exits with status
0) on Solaris 10, but fails with glibc.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-03-21 18:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-21 18:25 [Bug time/27620] New: localtime mishandles daylight saving transitions near January 1 eggert at cs dot ucla.edu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).