Skip to content

Commit 0e8d4ac

Browse files
committed
[Bug 15821] MCDateGetTimeInfo: Fix misnamed variable.
1 parent d1fb34e commit 0e8d4ac

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

libscript/src/module-date.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ MCDateGetTimeInfo(bool t_is_local,
4747
/* Windows doesn't have localtime_r(), but it does have an equivalent
4848
* function with the arguments in the opposite order! */
4949
if (0 != (t_is_local
50-
? localtime_s(&r_timeinfo, &t_time)
51-
: gmtime_s(&r_timeinfo, &t_time)))
50+
? localtime_s(&r_timeinfo, &t_now)
51+
: gmtime_s(&r_timeinfo, &t_now)))
5252
{
5353
return false;
5454
}

0 commit comments

Comments
 (0)