nextcloud / deck

🗂 Kanban-style project & personal management tool for Nextcloud, similar to Trello
https://apps.nextcloud.com/apps/deck
GNU Affero General Public License v3.0
1.22k stars 278 forks source link

The number of days away is incorrect for due dates #2639

Open Poikilos opened 3 years ago

Poikilos commented 3 years ago

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:

  1. Early in the morning, set a due date late at night for another day
  2. 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).

Screenshots kanban - says 5 days away, should say 4 (says 5 days away, should say 4)

Client details:

Server details **Operating system**: Ubuntu 20.04 **Web 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 ```
juliusknorr commented 3 years ago

cc @stefan-niedermann I think that makes sense, not sure how you handle that in the android app but it think it would make sense to align here :)

stefan-niedermann commented 3 years ago

Yes, i agree. I will check how we solved it there and then post a proposal here tomorrow.