diff options
| author | John Keeping | 2016-01-19 19:33:05 +0000 |
|---|---|---|
| committer | Jason A. Donenfeld | 2016-02-08 14:22:21 +0100 |
| commit | f2a901d2e1db5217d6890b26c6dc1ec119505d02 (patch) | |
| tree | 72f3039748dcf1b00b3d5741cc6282dee7f5492c /ui-log.c | |
| parent | 21dcf10386551a2eee3e552c3213bb14e535cbba (diff) | |
| download | cgit-f2a901d2e1db5217d6890b26c6dc1ec119505d02.tar.gz cgit-f2a901d2e1db5217d6890b26c6dc1ec119505d02.tar.bz2 cgit-f2a901d2e1db5217d6890b26c6dc1ec119505d02.zip | |
ui: show ages in the originator's timezone
This affects the tooltip showing the full time and the case when a date
is sufficiently old to be shown in full rather than as an offset.
Signed-off-by: John Keeping <john@keeping.me.uk>
Diffstat (limited to 'ui-log.c')
| -rw-r--r-- | ui-log.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -204,7 +204,7 @@ static void print_commit(struct commit *commit, struct rev_info *revs) | |||
| 204 | } | 204 | } |
| 205 | else { | 205 | else { |
| 206 | html("<td>"); | 206 | html("<td>"); |
| 207 | cgit_print_age(commit->date, TM_WEEK * 2); | 207 | cgit_print_age(info->committer_date, info->committer_tz, TM_WEEK * 2); |
| 208 | html("</td>"); | 208 | html("</td>"); |
| 209 | } | 209 | } |
| 210 | 210 | ||
| @@ -244,7 +244,7 @@ static void print_commit(struct commit *commit, struct rev_info *revs) | |||
| 244 | 244 | ||
| 245 | if (revs->graph) { | 245 | if (revs->graph) { |
| 246 | html("</td><td>"); | 246 | html("</td><td>"); |
| 247 | cgit_print_age(commit->date, TM_WEEK * 2); | 247 | cgit_print_age(info->committer_date, info->committer_tz, TM_WEEK * 2); |
| 248 | } | 248 | } |
| 249 | 249 | ||
| 250 | if (!lines_counted && (ctx.repo->enable_log_filecount || | 250 | if (!lines_counted && (ctx.repo->enable_log_filecount || |
