Commit 33dd96c2 authored by Bo Yang's avatar Bo Yang

Use mktime

parent 262cc060
...@@ -14325,7 +14325,7 @@ static bool end_timestamp_zone(upb_json_parser *p, const char *ptr) { ...@@ -14325,7 +14325,7 @@ static bool end_timestamp_zone(upb_json_parser *p, const char *ptr) {
} }
/* Normalize tm */ /* Normalize tm */
seconds = timegm(&p->tm); seconds = mktime(&p->tm) - timezone;
seconds += 3600 * hours; seconds += 3600 * hours;
/* Check timestamp boundary */ /* Check timestamp boundary */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment