1
0
mirror of https://github.com/mattermost/focalboard.git synced 2025-03-06 15:36:17 +02:00
Johannes Marbach 0291052c1c
[GH-912] Discard (milliseconds) when counting create/update dates (#981)
* [GH-912] Discard (milliseconds) when counting create/update dates

Card creation and update dates are displayed with hours and minutes only on
the UI. When the full timestamp is used for counting unique values, this
leads to a discrepancy because the (milli)second parts impact the count
but are not visible to the user.

This commit fixes creation and update timestamps to minutes accuracy
before their values enter any calculation.

Closes: #912

* Add parentheses to please the linter

* Add 1s to test fixtures to cover bug scenario

* Add dedicated unit tests for creation / update 1s and 1m apart

Co-authored-by: Harshil Sharma <harshilsharma63@gmail.com>
2021-08-24 15:00:51 +05:30
..
2020-10-20 12:50:53 -07:00
2021-01-28 09:38:04 -08:00
2020-12-18 12:52:45 -08:00
2021-05-10 07:46:07 +02:00
2020-12-10 13:45:56 -08:00