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.