#8914: Haiku ignores POSIX TZ environment variable ----------------------------+---------------------------- Reporter: edglex | Owner: zooey Type: bug | Status: assigned Priority: normal | Milestone: R1 Component: System/POSIX | Version: R1/Development Resolution: | Keywords: Blocked By: | Blocking: Has a Patch: 0 | Platform: All ----------------------------+---------------------------- Comment (by zooey): Replying to [comment:3 edglex]: > Replying to [comment:2 zooey]: > > TZ is not being ignored by Haiku, try this: > > TZ=EST date > > At least for me, this shows the date in EST timezone (which isn't my native one). > > I am now unsure if the bug lies with swi-prolog or haiku, because running "TZ=CEST date" does indeed show me a date in CEST, but "TZ=CET" does not seem to do anything, while "TZ=CET+00:00" causes the swi-prolog tests to pass even though they complain about not getting the expected output. I'm not sure I understand the function of TZ well enough to know what to do about this, but this bug report does indeed seem to be incorrect, or at least about the wrong thing. I don't think this bug report is invalid. Maybe there's a problem in both swi-prolog and Haiku. When I played with TZ a bit on Haiku, I noticed that "TZ=EST date" works as intended, but "TZ=CEST date" does not: the latter shows the string "CEST" as timezone, but the printed date actually is the UTC date. > > > > > I've tried to build swi-prolog, but failed (see bug 626 on haiku-ports for the details). > > > > Can you tell me which of the tests fails? > > swi-prolog is building for you now.. so I guess you know the test that is failing - the tests in 'library.pl' which check the output format of various date/time functions. In the main testing script (run by make check) TZ is set to "CET". Yes, I've noticed the failing tests, some of which may have wrong expectations, but others seem to indicate a problem with Haiku. I'll continue to investigate when I find the time. -- Ticket URL: <http://dev.haiku-os.org/ticket/8914#comment:4> Haiku <http://dev.haiku-os.org> Haiku - the operating system.