diff options
author | Eric Wong <e@80x24.org> | 2021-09-17 13:40:07 +0900 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-09-17 04:41:11 +0000 |
commit | fe1b11bf5a752743167018f77e2826304ba0aa0e (patch) | |
tree | 955d2dad4b8ed11794f276f3c7ce5fcebadc8884 /lib/PublicInbox/Fetch.pm | |
parent | 23ac27869da4744aba2a67454504b7a157583df7 (diff) | |
download | public-inbox-fe1b11bf5a752743167018f77e2826304ba0aa0e.tar.gz |
While git respects a user's local timezone and returns seconds-since-the-Epoch, we were unnecessarily and incorrectly calling gmtime+strftime on its result. So ignore calling gmtime+strftime when the strftime format is "%s", just feed the output time from git directly to Xapian. This is mainly for lei, which will likely run in a variety of timezones. While we're at it, add a recommendation to use TZ=UTC in public-inbox-httpd, in case there are (misguided :P) sysadmins who set a non-UTC TZ.
Diffstat (limited to 'lib/PublicInbox/Fetch.pm')
0 files changed, 0 insertions, 0 deletions