aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc/time/strftime.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/time/strftime.c')
-rw-r--r--newlib/libc/time/strftime.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/newlib/libc/time/strftime.c b/newlib/libc/time/strftime.c
index ee604c2..72f06d3 100644
--- a/newlib/libc/time/strftime.c
+++ b/newlib/libc/time/strftime.c
@@ -1283,6 +1283,7 @@ recurse:
if (tim_p->tm_isdst >= 0)
{
long offset;
+ tzset ();
#if defined (__CYGWIN__)
/* Cygwin must check if the application has been built with or
@@ -1313,6 +1314,7 @@ recurse:
size_t size;
const char *tznam = NULL;
+ tzset ();
TZ_LOCK;
#if defined (__CYGWIN__)
/* See above. */