[issue1014] commit does not handle timezone correctly

Julio Castillo mercurial-bugs at selenic.com
Mon Mar 3 21:32:57 CST 2008


New submission from Julio Castillo <juliocc at gmail.com>:

My current timezone is GMT -0430 but whenever I make a commit hg log reports it
as -0530. It appears that commit (or log) does not handle "fractional" timezones
correctly. 

I'm using version 0.9.5; these are the steps to reproduce this bug.

$ export TZ=America/Caracas
$ date --rfc-2822
Mon, 03 Mar 2008 23:15:49 -0430
$ hg init
$ echo hello > test
$ hg add test
$ hg commit -m "-0430 (Caracas)"
$ export TZ=America/La_Paz
$ date --rfc-2822
Mon, 03 Mar 2008 23:45:49 -0400
$ echo bye > test
$ hg commit -m "-0400 (La Paz)"
$ hg log
changeset:   1:95244a23662e
tag:         tip
user:        Julio Castillo <me at me.com>
date:        Mon Mar 03 23:45:49 2008 -0400
summary:     -0400 (La Paz)

changeset:   0:81c650ab68bd
user:        Julio Castillo <me at me.com>
date:        Mon Mar 03 23:15:49 2008 -0530
summary:     -0430 (Caracas)

----------
messages: 5444
nosy: juliocc
priority: bug
status: unread
title: commit does not handle timezone correctly

____________________________________________________
Mercurial issue tracker <mercurial-bugs at selenic.com>
<http://www.selenic.com/mercurial/bts/issue1014>
____________________________________________________



More information about the Mercurial-devel mailing list