mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-11-22 02:09:03 +01:00
Merge branch 'backport-4617-tzset-glib-2-84' into 'glib-2-84'
Backport !4617 “gdate: Call tzset before localtime_r” to glib-2-84 See merge request GNOME/glib!4623
This commit is contained in:
@@ -1392,6 +1392,7 @@ _g_localtime (time_t timet, struct tm *out_tm)
|
|||||||
gboolean success = TRUE;
|
gboolean success = TRUE;
|
||||||
|
|
||||||
#ifdef HAVE_LOCALTIME_R
|
#ifdef HAVE_LOCALTIME_R
|
||||||
|
tzset ();
|
||||||
if (!localtime_r (&timet, out_tm))
|
if (!localtime_r (&timet, out_tm))
|
||||||
success = FALSE;
|
success = FALSE;
|
||||||
#else
|
#else
|
||||||
|
|||||||
Reference in New Issue
Block a user