Bo Yang %!s(int64=6) %!d(string=hai) anos
pai
achega
33dd96c23f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      ruby/ext/google/protobuf_c/upb.c

+ 1 - 1
ruby/ext/google/protobuf_c/upb.c

@@ -14325,7 +14325,7 @@ static bool end_timestamp_zone(upb_json_parser *p, const char *ptr) {
   }
 
   /* Normalize tm */
-  seconds = timegm(&p->tm);
+  seconds = mktime(&p->tm) - timezone;
   seconds += 3600 * hours;
 
   /* Check timestamp boundary */