commit - 92952c0ecd960182cd5822e21126351bff23ad61
commit + e385fc421f331989f2e6518465e5ead42e5a0618
blob - f48598b57aa7474d4174c928c96d948834824f21
blob + b008eec8b509913ce8be844f671bf5e5290d0296
--- got/got.c
+++ got/got.c
}
committer_time = got_object_commit_get_committer_time(commit);
- if (localtime_r(&committer_time, &tm) == NULL)
- return got_error_from_errno("localtime_r");
+ if (gmtime_r(&committer_time, &tm) == NULL)
+ return got_error_from_errno("gmtime_r");
if (strftime(bline->datebuf, sizeof(bline->datebuf), "%G-%m-%d",
&tm) == 0) {
err = got_error(GOT_ERR_NO_SPACE);
char *logmsg0 = NULL, *logmsg, *newline;
committer_time = got_object_commit_get_committer_time(commit);
- if (localtime_r(&committer_time, &tm) == NULL)
- return got_error_from_errno("localtime_r");
+ if (gmtime_r(&committer_time, &tm) == NULL)
+ return got_error_from_errno("gmtime_r");
if (strftime(datebuf, sizeof(datebuf), "%G-%m-%d", &tm) == 0)
return got_error(GOT_ERR_NO_SPACE);
blob - 7d851f4f247951408191157cdfd7b2a4a3eb97e0
blob + 360a75d7bbb481e8975ca6e111ac718511e742a3
--- gotweb/gotweb.c
+++ gotweb/gotweb.c
}
committer_time = got_object_commit_get_committer_time(commit);
- if (localtime_r(&committer_time, &tm) == NULL)
- return got_error_from_errno("localtime_r");
+ if (gmtime_r(&committer_time, &tm) == NULL)
+ return got_error_from_errno("gmtime_r");
if (strftime(bline->datebuf, sizeof(bline->datebuf), "%G-%m-%d",
&tm) == 0) {
err = got_error(GOT_ERR_NO_SPACE);
blob - c175ea3c10692ebe9286741d643cd9b65fb4140c
blob + fc51be808de240c6c11edb65c15e8270ca3fffe3
--- tog/tog.c
+++ tog/tog.c
struct tog_color *tc;
committer_time = got_object_commit_get_committer_time(commit);
- if (localtime_r(&committer_time, &tm) == NULL)
- return got_error_from_errno("localtime_r");
+ if (gmtime_r(&committer_time, &tm) == NULL)
+ return got_error_from_errno("gmtime_r");
if (strftime(datebuf, sizeof(datebuf), "%G-%m-%d ", &tm) == 0)
return got_error(GOT_ERR_NO_SPACE);