Browse Source

Swap args.

Brucey 2 years ago
parent
commit
07744081e5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      stdc.mod/stdc.c

+ 1 - 1
stdc.mod/stdc.c

@@ -1207,7 +1207,7 @@ int bmx_datetime_convert_to_utc(const SDateTime* dt, SDateTime* dt_utc) {
     struct tm utc;
     struct tm utc;
 
 
 #if defined(_WIN32) || defined(_WIN64)
 #if defined(_WIN32) || defined(_WIN64)
-    gmtime_s(&ts, &utc);
+    gmtime_s(&utc, &ts);
 #else
 #else
     gmtime_r(&ts, &utc);
     gmtime_r(&ts, &utc);
 #endif
 #endif