NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

bin/47764: date hour wrong



>Number:         47764
>Category:       bin
>Synopsis:       date hour regression
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Apr 24 18:45:00 +0000 2013
>Originator:     reed%reedmedia.net@localhost
>Release:        NetBSD 6.0
>Organization:
  Jeremy C. Reed
>Environment:
        
        
System: NetBSD t1.m.reedmedia.net 6.0_STABLE NetBSD 6.0_STABLE (GENERIC) #2: 
Wed Oct 24 13:02:03 CDT 2012 
reed%t1.m.reedmedia.net@localhost:/usr/obj/sys/arch/amd64/compile/GENERIC amd64
Architecture: x86_64
Machine: amd64
>Description:

On NetBSD 5.2:
$ TZ=America/Los_Angeles date -d "25-may-2013 14:00utc" +"%A %B %d %I:%M %p %z"
Saturday May 25 07:00 AM -0700

But on NetBSD 6.0:
$ TZ=America/Los_Angeles date -d "25-may-2013 14:00utc" +"%A %B %d %I:%M %p %z"
Saturday May 25 03:00 PM -0700

Notice the hour and am/pm are wrong for newer date.
(Timezone offset is correct.)

>How-To-Repeat:
        
>Fix:
        

>Unformatted:
        
        


Home | Main Index | Thread Index | Old Index