Thread View: muc.lists.freebsd.bugs
3 messages
3 total messages
Started by bugzilla-noreply
Sat, 21 Nov 2026 10:24
[Bug 300977] TZ=UTC0UTC date prints wrong weekday
Author: bugzilla-noreply
Date: Sat, 21 Nov 2026 10:24
Date: Sat, 21 Nov 2026 10:24
44 lines
3069 bytes
3069 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=300977
Bug ID: 300977
Summary: TZ=UTC0UTC date prints wrong weekday
Product: Base System
Version: 15.2-STABLE
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: bin
Assignee: bugs@FreeBSD.org
Reporter: eserte12@yahoo.de
`TZ=UTC0UTC` is not handled correctly. When set, date and other tools return a
wrong weekday.
```
$ TZ=UTC date
Fri Nov 20 20:13:28 UTC 2026
$ TZ=UTC0 date
Fri Nov 20 20:13:28 UTC 2026
$ TZ=UTC0UTC date
Wed Nov 20 20:13:28 UTC 2026
```
This used to be correct in earlier FreeBSD versions (15.1?). The UTC0UTC value
is used in the perl test suite, which started to fail. See
https://github.com/Perl/perl5/issues/25089 for the issue in perl's bug tracker.
--
You are receiving this mail because:
You are the assignee for the bug.
--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
[Bug 300977] TZ=UTC0UTC date prints wrong weekday
Author: bugzilla-noreply
Date: Wed, 25 Nov 2026 12:17
Date: Wed, 25 Nov 2026 12:17
70 lines
4154 bytes
4154 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=300977
Victor Stinner <victor.stinner@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |victor.stinner@gmail.com
--- Comment #1 from Victor Stinner <victor.stinner@gmail.com> ---
This is a bug in tzcode 2026d, see:
https://lists.iana.org/hyperkitty/list/tz@iana.org/thread/I7KQYKHBNCIC6FW7JMP4LPBPSECDKDE2/
https://lists.iana.org/hyperkitty/list/tz@iana.org/thread/O3RZGBKSO5GXBFDZKW2JXO3OQIIGYBF3/
Python is affected by the issue, see:
https://github.com/python/cpython/issues/162515
Perl is also affected:
https://github.com/Perl/perl5/issues/25089
I discovered the issue on the FreeBSD 16 buildbot of Python: FreeBSD 16 uses
FreeBSD-zoneinfo-16.snap20261028145349. It seems like FreeBSD 15 is not
affected yet, using FreeBSD-zoneinfo-15.1p7. But I didn't understand yet if the
issue is in the zoneinfo package or in the libc?
Example of Python script to reproduce the issue:
---
import datetime
import time
import os
os.environ['TZ'] = 'EST+05EDT,M3.2.0,M11.1.0'
time.tzset()
DT = datetime.datetime
current = DT(2012, 2, 19, 23, 59, 59)
currentTime = current.timestamp()
week = 60 * 60 * 24 * 7 # seconds
interval = week * 3
result = currentTime + interval
t = time.localtime(currentTime)
print("localtime:", t)
---
Output on Linux, FreeBSD 15 and FreeBSD 14: tm_wday=6
---
localtime: time.struct_time(tm_year=2012, tm_mon=2, tm_mday=19, tm_hour=23,
tm_min=59, tm_sec=59, tm_wday=6, tm_yday=50, tm_isdst=0)
---
Output on FreeBSD 16: tm_wday=4
---
localtime: time.struct_time(tm_year=2012, tm_mon=2, tm_mday=19, tm_hour=23,
tm_min=59, tm_sec=59, tm_wday=4, tm_yday=50, tm_isdst=0)
---
FreeBSD 16 returns the wrong tm_wday: 4 instead of 6.
--
You are receiving this mail because:
You are the assignee for the bug.
--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
[Bug 300977] TZ=UTC0UTC date prints wrong weekday
Author: bugzilla-noreply
Date: Wed, 25 Nov 2026 12:38
Date: Wed, 25 Nov 2026 12:38
16 lines
2472 bytes
2472 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=300977
Kurt Jaeger <pi@FreeBSD.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Assignee|bugs@FreeBSD.org |re@FreeBSD.org
--
You are receiving this mail because:
You are the assignee for the bug.
--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads