aboutsummaryrefslogtreecommitdiffstats
path: root/main/task/musl-mktime.patch
blob: cfe0beee1a87f84b9e1ae93e3d729d3be251b147 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- ./src/ISO8601.cpp.orig
+++ ./src/ISO8601.cpp
@@ -702,7 +702,7 @@
     t.tm_min = (seconds % 3600) / 60;
     t.tm_sec = seconds % 60;
 
-  _value = utc ? timegm (&t) : timelocal (&t);
+  _value = utc ? timegm (&t) : mktime (&t);
 }
 
 ////////////////////////////////////////////////////////////////////////////////