[haiku-bugs] Re: [Haiku] #8914: Incorrect behaviour with POSIX TZ environment variable

  • From: "jessicah" <trac@xxxxxxxxxxxx>
  • Date: Thu, 16 Apr 2015 22:07:59 -0000

#8914: Incorrect behaviour with POSIX TZ environment variable
----------------------------+----------------------------
Reporter: edglex | Owner: zooey
Type: bug | Status: assigned
Priority: normal | Milestone: Unscheduled
Component: System/POSIX | Version: R1/Development
Resolution: | Keywords:
Blocked By: | Blocking:
Has a Patch: 0 | Platform: All
----------------------------+----------------------------

Comment (by jessicah):

I am experiencing similar issues around `mktime()`, which causes an off-
by-one error with the `tm.tm_sec` field, depending on the
configured/specified timezone.

For example, in New Zealand, the test fails; indeed, setting the timezone
in the Time preflet to any value of GMT+N:00 will cause the test to fail.
Setting the timezone to GMT or GMT-N:00 will pass.

Using the TZ environment variable, `TZ=GMT-12:00 ./time-failure` fails
here, whilst `TZ=GMT+12:00 ./time-failure` succeeds.

--
Ticket URL: <https://dev.haiku-os.org/ticket/8914#comment:8>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: