Skip to content
Browse files

Always set UTC for timezone for UTC/GMT

  • Loading branch information...
1 parent 70eb2ab commit 908e9ffe6953993a94b5b6d0674cb55819b22285 @jc00ke jc00ke committed Nov 14, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 vm/util/time64.c
View
2 vm/util/time64.c
@@ -355,6 +355,8 @@ struct tm64* gmtime64_r(const time64_t* time64, struct tm64* tm64) {
if(gmtime_r(&time, &tm)) {
tm_to_tm64(&tm, tm64);
+ /* Always set to UTC even if the platform returns GMT (eg: Linux) */
+ tm64->tm_zone = (char *)"UTC";
return tm64;
}
}

0 comments on commit 908e9ff

Please sign in to comment.
Something went wrong with that request. Please try again.