Project/Util/gitweb: avoid bizarre Time::Local year interpretation
commitee41a2a318d625ba8774361f451b1c356944ef39
authorKyle J. McKay <mackyle@gmail.com>
Tue, 7 Jan 2020 02:13:37 +0000 (6 19:13 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Tue, 7 Jan 2020 02:13:37 +0000 (6 19:13 -0700)
tree922e753d61fa5f9d2d8a4865aa89f2093372f3e3
parentc7fc35ebc79c9b5605dc2ea1b78f9ca6b0663851
Project/Util/gitweb: avoid bizarre Time::Local year interpretation

Although the Time::Local timegm and timelocal functions appear
to be the inverse of the built-in gmtime and localtime functions,
they are not.

When Time::Local functions are passed a year value in the range
0..99 inclusive (as might be returned from the built-in gmtime
and localtime functions), it will be misinterpreted.

Instead, always pass the actual year value to the Time::Local
functions to avoid misinterpretation.

Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
Girocco/Project.pm
Girocco/Util.pm
git.git