Evangelos Ribeiro Tzaras 07f544b78d gcal-date-time-utils: Fix week start
In locales where the first weekday is a monday, the previous code
had a off by one error determining the week a sunday is in.
The problem ultimately arose because in the
`gcal_date_time_get_start_of_week()` function the variable
`n_days_after_week_start` would become negative (-1 in this case) making
the following `g_date_time_add_days (date, -n_days_after_week_start)`
add 1 day resulting in `start_of_week` being set to the start of the
following week.

The solution was to make sure `n_days_after_week_start` would be
positive by adding 7 to it. The variable is taken modulo 7 hence this
should not introduce any bugs.

Fixes #583
2020-06-15 20:43:55 +02:00
2020-03-06 22:34:50 -03:00
2020-06-05 09:14:42 +02:00
2020-06-15 20:43:55 +02:00
2020-06-15 13:07:48 -03:00
2019-05-04 12:05:39 -03:00
2018-07-31 12:35:56 -03:00
2018-02-23 16:11:36 -03:00
2012-04-25 23:56:34 -04:00
2018-01-28 00:32:07 -02:00
2017-09-08 21:34:52 -03:00
2020-03-06 22:34:50 -03:00
2019-09-13 21:13:35 +00:00
2018-01-16 08:32:43 -02:00

GNOME Calendar

GNOME Calendar is a simple and beautiful calendar application for GNOME. We give a lot of attention to details, and as such, design is an essential and ongoing effort.

Flatpak

S
Description
No description provided
Readme
19 MiB
Languages
C 97.6%
Meson 1.2%
CSS 0.7%
Python 0.3%
Shell 0.2%