Fix: timegm compat on Solaris
authorMichael Jeanson <mjeanson@efficios.com>
Mon, 13 Nov 2017 20:06:29 +0000 (15:06 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 13 Nov 2017 23:26:45 +0000 (18:26 -0500)
commita82e6c948bf4bc3e0f02537b394e0bffa333ef0e
treef00101eb2a94379d351f60de3f274eefb15567d5
parent9de34faace8ca957d6b71e392f7100690bdb9f7e
Fix: timegm compat on Solaris

On Solaris 11 setting TZ to an empty string before calling mktime will
in some circumstances do the conversion in localtime instead of UTC as
expected.

Replace the empty string by "UTC".

Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
include/babeltrace/compat/utc.h
This page took 0.025447 seconds and 4 git commands to generate.