]> Lady’s Gitweb - Gitweb/commit
gitweb: Fix parsing of negative fractional timezones in JavaScript
authorJakub Narebski <redacted>
Fri, 1 Apr 2011 19:06:28 +0000 (21:06 +0200)
committerLady <redacted>
Mon, 6 Apr 2026 04:51:30 +0000 (00:51 -0400)
commit26f744892e1d59f0ade9ae2712790e199e0f351db9fe943c333ec9c279c09c40
tree4b66ab69837fae6beada82610c2e3b90d2bb7d830363b7e5a6caacbae34236ab
parent1a989512bce6f337f0e7becb6d934362003402d8d7ee5853243e1d48c45b1901
gitweb: Fix parsing of negative fractional timezones in JavaScript

Extract converting numerical timezone in the form of '(+|-)HHMM' to
timezoneOffset function, and fix parsing of negative fractional
timezones.

This is used to format timestamps in 'blame_incremental' view; this
complements commit 2b1e172 (gitweb: Fix handling of fractional
timezones in parse_date, 2011-03-25).

Now

  gitweb.cgi/git.git/blame_incremental/3fe5489:/contrib/gitview/gitview#l853

and

  gitweb.cgi/git.git/blame/3fe5489:/contrib/gitview/gitview#l853

show the same correct time in author's local timezone in title
(on mouseover) [Aneesh Kumar K.V, 2006-02-24 00:59:42 +0530].

Signed-off-by: Jakub Narebski <redacted>
Signed-off-by: Junio C Hamano <redacted>
static/gitweb.js
This page took 0.27343 seconds and 5 git commands to generate.