Use UTC consistently instead of local timezone.
[openvswitch] / ovsdb / ovsdb-tool.c
index f680989677617ff9d263137c42225f3d7a19c0a0..f5412f36b7b5295881ebdc117895559b84bf1b4f 100644 (file)
@@ -513,7 +513,7 @@ do_show_log(int argc, char *argv[])
                 time_t t = json_integer(date);
                 char s[128];
 
-                strftime(s, sizeof s, "%Y-%m-%d %H:%M:%S", localtime(&t));
+                strftime(s, sizeof s, "%Y-%m-%d %H:%M:%S", gmtime(&t));
                 printf(" %s", s);
             }