mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Correct week determination when computing DST transitions from timestamps.
This commit is contained in:
parent
c7ca7850df
commit
23d4e4a56f
@ -443,7 +443,7 @@ namespace DSTRule
|
||||
|
||||
Transition::Transition(gregorian_date date) :
|
||||
month(date.month()), dow(date.day_of_week()),
|
||||
week(static_cast<week_num>((7 + date.day() - date.day_of_week()) / 7 + 1))
|
||||
week(static_cast<week_num>((7 + date.day() - date.day_of_week()) / 7))
|
||||
{}
|
||||
|
||||
bool
|
||||
|
Loading…
Reference in New Issue
Block a user