Subject: Re: bug#30795: Issue with date command and EDT

From: Paul Eggert <[email-masked]>
Date: Thu, 15 Mar 2018 15:33:10 -0700

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.