We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 14b16c0 + 977cba5 commit 98c45aeCopy full SHA for 98c45ae
docs/lcb/notes/15768.md
@@ -0,0 +1,3 @@
1
+# LiveCode Builder Standard Library
2
+
3
+# [15768] Fix "the local date" on Windows
libscript/src/module-date.cpp
@@ -33,7 +33,7 @@ along with LiveCode. If not see <http://www.gnu.org/licenses/>. */
33
// so do a bit of gymnastics to make the signature correct.
34
inline struct tm *localtime_r(const time_t *p_time, struct tm *r_timeinfo)
35
{
36
- if (localtime_s(r_timeinfo, p_time) != 0)
+ if (localtime_s(r_timeinfo, p_time) == 0)
37
return r_timeinfo;
38
39
return NULL;
0 commit comments