We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d1fb34e commit 0e8d4acCopy full SHA for 0e8d4ac
1 file changed
libscript/src/module-date.cpp
@@ -47,8 +47,8 @@ MCDateGetTimeInfo(bool t_is_local,
47
/* Windows doesn't have localtime_r(), but it does have an equivalent
48
* function with the arguments in the opposite order! */
49
if (0 != (t_is_local
50
- ? localtime_s(&r_timeinfo, &t_time)
51
- : gmtime_s(&r_timeinfo, &t_time)))
+ ? localtime_s(&r_timeinfo, &t_now)
+ : gmtime_s(&r_timeinfo, &t_now)))
52
{
53
return false;
54
}
0 commit comments