We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c487f1 commit 1572aa8Copy full SHA for 1572aa8
quickjs.c
@@ -44429,9 +44429,13 @@ static int getTimezoneOffset(int64_t time)
44429
time_t gm_ti, loc_ti;
44430
44431
tm = gmtime(&ti);
44432
+ if (!tm)
44433
+ return 0;
44434
gm_ti = mktime(tm);
44435
44436
tm = localtime(&ti);
44437
44438
44439
loc_ti = mktime(tm);
44440
44441
res = (gm_ti - loc_ti) / 60;
0 commit comments