Repository navigation
Stop Dropbox relative time showing "0y ago" for 360-364 days - #14183
Conversation
[Medium impact] This PR appears safe to merge. SummaryFixes Dropbox file ages showing “0y ago” at 360–364 days.
Reviews (2) · Last reviewed commit: "Stop Dropbox relative time showing "0y a..." · Reviewed by Greptile |
chessing234
left a comment
There was a problem hiding this comment.
everything seems fine, ready to merge.
|
I read this against What I found by reading: the bug is still on Next: this comes round again once a second opinion is available. Then it gets classified, ported onto current |
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01DMKCCA2jSkTTwEwdZepjQd
fff7645 to
e97a6df
Compare
|
I rebased this onto current |
|
Thanks for porting this onto the translated
It's labelled |
…14183) Claude-Session: https://claude.ai/code/session_01DMKCCA2jSkTTwEwdZepjQd Co-authored-by: Claude <[email protected]> (cherry picked from commit 2f1a2c5)
The Dropbox panel's
relativeTimecomputed months as floor(days / 30) and only switched to years once that reached 12, so files modified 360-364 days ago fell through to floor(days / 365) and showed "0y ago".The month branch now runs while days < 365 and caps at 11 months, so years start at exactly "1y ago".
Tests:
test/shell.d/dropbox-test.shcovers 359, 360, 364 and 365 days. The 360-day case fails before this change.