gitweb: handle local DST properly
commit9f2d9717c69127564d4aad9a9e7910ff2e439c8b
authorKyle J. McKay <mackyle@gmail.com>
Sun, 14 Jun 2015 07:54:07 +0000 (14 00:54 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Sun, 14 Jun 2015 07:54:07 +0000 (14 00:54 -0700)
tree8f9d0ca9a567d2565318c093bafab4bf53b53d5f
parent5026b518384a5169cb7deba0010ce78cfa5b0586
gitweb: handle local DST properly

When the user selects the 'local' time zone for displaying
dates in gitweb, the actual time zone offset may vary depending
on whether or not DST is in effect for the actual date being used.

Handle this properly by calling getTimezoneOffset on the actual
date being displayed rather than the current date.

Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
gitweb/static/js/adjust-timezone.js
gitweb/static/js/lib/datetime.js