diff options
author | Lars Henriksen <LarsHenriksen@get2net.dk> | 2017-10-03 21:52:19 +0200 |
---|---|---|
committer | Lukas Fleischer <lfleischer@calcurse.org> | 2017-10-17 08:42:40 +0200 |
commit | eeb7038c134dbe623feb1bf7a6c4549e54343e0f (patch) | |
tree | 816370a48725ce26832437b08dcd74bf8cfa44ee /test | |
parent | 8ee78c14af3b9974ad96cf85f6ea32c4e254f958 (diff) | |
download | calcurse-eeb7038c134dbe623feb1bf7a6c4549e54343e0f.tar.gz calcurse-eeb7038c134dbe623feb1bf7a6c4549e54343e0f.zip |
Do not tie ISO 8601 week numbering to Monday
The week number in the calendar panel is calculated according to
ISO 8601. Hence, Monday is the first day of the week and the
week number changes from Sunday to Monday.
However, calcurse ties the week number not to Monday, but to the
first day of the week as configured for display. Thus, when Sunday
is shown as first day of the week, the week number is correct for
Sunday, but wrong for the rest of the week (one behind).
With this patch the week number always follows the mon-sun week as
required by ISO 8601. A side effect is that when Sunday is displayed
as first day of the week, and Sunday is the selected day, the week
number displayed is invalid for the rest of the week (but changes
to the correct one when the selected day moves forward).
This raises the question whether the week numbering scheme should
follow the "first day of the week" choice and use the American week
numbering scheme instead of ISO 8601 when Sunday is the first day
of the week. But that is for the future.
Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
Diffstat (limited to 'test')
0 files changed, 0 insertions, 0 deletions