Re: [PATCH] Add date format --local-zone

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx> writes:

> On Wed, 25 Apr 2007, Linus Torvalds wrote:
>> 
>> Ie, it would be better, I think, to use a
>> 
>> 	--date=local
>> 	--date=relative
>> 	--date=UTC
>> 	...
>> 
>> kind of syntax, than have each date flag be different ("--relative-date" 
>> vs "--local-zone"?).

Probably.

> Btw, when you do "--local-zone", you should drop the TZ printout too, I 
> think. It doesn't seem to make any sense to give the *wrong* timezone.

I do not think the definition of "wrong" is so clear.

I would not disagree that showing the authordate in timezone the
author was not in means --local-zone is showing a wrong zone,
but "show timestamps in _my_ zone" is what the option is
specifically asking for.

Originally I did it without timezone, but later I found it
amusing to see "log --since=2007-03-10 --until=2007-03-12".

	Note: in TZ=US/Pacific you would see -0700 and -0800
	during the above commit-time range.

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]