syncthing/gui/default
tomasz1986 2738735321
gui: Allow to translate and fix incorrect Versions date filter ranges (#8162)
* gui: Allow to translate and fix incorrect Versions date filter ranges

Translate the previously English-only ranges used in Versions date
filter. In the process, fix the currently incorrect range calculation.

For instance, let us say it is 08:05. Selecting "today" should set the
range to start at 00:00 and end at 08:05. However, what really happens
is that both start and end are set to 08:05, and as a result "today" is
never shown to the user. The case is the same for "yesterday", which in
contrary to "today" is shown, but its range is fixed at 08:05 on the
previous day.

This commit fixes the above by always calculating "today" starting at
00:00 up to the current moment, and calculating "yesterday" from 00:00
on the previous to 00:00 on the current day.

When it comes to "last x days", the commit fixes the calculation so that
it actually covers the whole day, which is done by moving the start date
to 00:00 on the first day.

Signed-off-by: Tomasz Wilczyński <twilczynski@naver.com>
2022-02-07 21:41:05 +01:00
..
assets gui: Allow to translate and fix incorrect Versions date filter ranges (#8162) 2022-02-07 21:41:05 +01:00
syncthing gui: Allow to translate and fix incorrect Versions date filter ranges (#8162) 2022-02-07 21:41:05 +01:00
vendor gui: Tweak the Restore Versions modal for better usability (#7972) 2022-01-25 23:08:27 +01:00
index.html gui: Fix ignoreDelete warning formatting (ref #8054) (#8138) 2022-01-30 13:03:46 +01:00
modal.html gui: Update to Font Awesome v5 (#4889) 2018-05-24 19:59:32 +01:00