File deletion timespan in trash should be rounded down
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 36.9k
- Forks
- 5.2k
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 713
Description
describtion
The files app shows in the trash folder at the right side the timespan since this file was deleted. This timespan is translated to a human readable format like "a year ago". But in the tooltip I see (today) a day in 2020.

Note: The screenshot was taken in 2020/11/20
solution I would like
Specially (or only?) for the trash I mean it is more intuitive, that the "was deleted time" is at least the timespan. If is displayed "a year ago" I sense the deletion is at least one year old. Not the deletion is rounded one year old.
notes
I think this could prevent a to early permanent deletion of a file.
May be this is also more intuitive for "modified at" timespans.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No files, tests, or entry points are named in the issue. Start by reproducing the trash view and its deletion-age tooltip, then trace where that displayed timespan is calculated; done means the trash age is rounded down consistently, with coverage for the reported 2020 example.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100