mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-06-02 19:00:08 +02: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:
commit
b3de15acf9
@ -1392,6 +1392,7 @@ _g_localtime (time_t timet, struct tm *out_tm)
|
||||
gboolean success = TRUE;
|
||||
|
||||
#ifdef HAVE_LOCALTIME_R
|
||||
tzset ();
|
||||
if (!localtime_r (&timet, out_tm))
|
||||
success = FALSE;
|
||||
#else
|
||||
|
Loading…
x
Reference in New Issue
Block a user