The number of days away is incorrect for due dates
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1.4k
- Forks
- 354
- Avg merge
- 1d 10h
- Merged PRs (30d)
- 43
Description
version 1.2.2
The number of days away is incorrect (the number should not be rounded up).
To Reproduce
Steps to reproduce the behavior:
- Early in the morning, set a due date late at night for another day
- The number of days away is wrong (it rounds up, presumably since more than x days + 12 hours)
Expected behavior
Provide the number of days away without respect to hours (floor instead of round if using hours).
- Show hours separately if anything.
Screenshots

(says 5 days away, should say 4)
Client details:
- OS: Windows 10
- Browser Firefox
- Version 83.0
- Device: desktop
Server details
**Operating system**: Ubuntu 20.04Web server:
Nginx
Database:
PostgreSQL
PHP version:
7.3
Nextcloud version: (see Nextcloud admin page)
19.0.5
Where did you install Nextcloud from:
tarball (then upgraded via GUI several times)
Signing status:
No errors have been found.
List of activated apps:
N/A
If you have access to your command line run e.g.:
sudo -u www-data php occ app:list
from within your Nextcloud installation folder
Nextcloud configuration:
N/A
If you have access to your command line run e.g.:
sudo -u www-data php occ config:list system
from within your Nextcloud installation folder
or
Insert your config.php content here
Make sure to remove all sensitive content such as passwords. (e.g. database password, passwordsalt, secret, smtp password, …)
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...
No
Logs
Nextcloud log (data/nextcloud.log)
N/A
Insert your Nextcloud log here
Browser log
N/A
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 source file or test is named. Start by reproducing the due-date display in the Deck card UI using the described early-morning and late-night dates, then trace the calculation that produces the displayed number of days. Done means the example reports 4 rather than 5 and fractional hours do not round the day count upward.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100