|
From: | Paul Eggert |
Subject: | bug#30795: Issue with date command and EDT |
Date: | Thu, 15 Mar 2018 15:33:10 -0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 |
On 03/15/2018 12:15 AM, Assaf Gordon wrote:
Technically it's an easy fix (patch attached), but it changes a long-standing behavior.
Yes, that's a problem. Perhaps we should take the last unit requested in the output format, divide that by two, and add that to the time instead. If the output format is %Y-%m-%d the output unit is one day, so we'd add 12 hours. With the default output format we'd add only 0.5 s, which would be a no-op.
This isn't as fancy as what Pádraig is proposing, but it should be easy to implement.
[Prev in Thread] | Current Thread | [Next in Thread] |