{"thread":{"id":"35683","subject":"Date format in 'git log' should be in local timezone","startedAt":"2014-01-18T00:11:08Z","lastAt":"2014-01-18T00:28:48Z","messageCount":2,"participants":["Yuri","Jonathan Nieder"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"233330","messageId":"52D9C69C.2020006@rawbw.com","threadId":"35683","inReplyTo":null,"subject":"Date format in 'git log' should be in local timezone","fromName":"Yuri","fromEmail":"yuri@rawbw.com","sentAt":"2014-01-18T00:11:08Z","receivedAt":"2014-01-18T00:11:08Z","isPatch":false,"sender":{"key":"yuri@rawbw.com","avatar":null},"body":"Currently git log mixes timezones in the date records in the same log, \nso the following dates wold appear in one log:\nDate:   Thu Jan 16 17:11:28 2014 -0800\nDate:   Thu Jan 16 20:10:04 2014 -0500\n\nTimezone here doesn't help the log reader at all. It doesn't even \nreflect the actual location of the submitter. Instead, it should be \nconverted to the local TZ of the client. This will make it easier to \nread and understand the time.\n\nEven further, timezone shouldn't even be stored by the git server. It \nshould just store the UTC time, following the approach how time is \nmanaged in most UNIX-like systems.\n\nYuri\n"},{"id":"233331","messageId":"20140118002848.GC18964@google.com","threadId":"35683","inReplyTo":"52D9C69C.2020006@rawbw.com","subject":"Re: Date format in 'git log' should be in local timezone","fromName":"Jonathan Nieder","fromEmail":"jrnieder@gmail.com","sentAt":"2014-01-18T00:28:48Z","receivedAt":"2014-01-18T00:28:48Z","isPatch":false,"sender":{"key":"jrnieder@gmail.com","avatar":"https://avatars.githubusercontent.com/u/281595?v=4"},"body":"Hi,\n\nYuri wrote:\n\n> Timezone here doesn't help the log reader at all. It doesn't even\n> reflect the actual location of the submitter. Instead, it should be\n> converted to the local TZ of the client. This will make it easier to\n> read and understand the time.\n\nDoes \"git log --date=local\" or \"git log --date=relative\" do what\nyou're looking for?\n\nIf so, you can set that permanently by setting 'date = local' or\n'date = relative' in the [log] section of your ~/.gitconfig.  See\nlog.date in the git-config(1) manpage for details.\n\nI wonder if 'date = relative' would make a better default.\n\n> Even further, timezone shouldn't even be stored by the git server.\n\nI've found it very useful and would consider that a regression, at\nleast.\n\nThanks and hope that helps,\nJonathan\n"}]}