gnucash master: Multiple changes pushed
John Ralls
jralls at code.gnucash.org
Fri Mar 17 18:36:04 EDT 2017
Updated via https://github.com/Gnucash/gnucash/commit/66e81040 (commit)
via https://github.com/Gnucash/gnucash/commit/e66dd12a (commit)
from https://github.com/Gnucash/gnucash/commit/c4c45e95 (commit)
commit 66e81040cb4ffa1315fc9e63bb950d67967c344e
Author: John Ralls <jralls at ceridwen.us>
Date: Fri Mar 17 15:18:00 2017 -0700
Fix DST calculation error.
The symptom was that in 2017 the PDT->PST transition was set a week
late. The cause was that the timezone lookup function went the wrong
way, finding the *next* timezone rule instead of the desired one because
timezone rules are stored for the year that they start rather than when
they end. Fix reverses the search to find the correct timezone rule.
Commit includes new tests to detect the problem.
commit e66dd12aa91e60ba33b436dfc3e109fe0736b438
Author: John Ralls <jralls at ceridwen.us>
Date: Fri Mar 17 15:16:18 2017 -0700
Fix query period in test-account-get-trans-type-splits-interval.
The query runs from 00:00:00 on the start date to 23:59:59 on the end
date, effectively one day more than the number specified.
Summary of changes:
src/libqof/qof/gnc-timezone.cpp | 17 +++++++----------
src/libqof/qof/test/gtest-gnc-datetime.cpp | 11 +++++++++++
src/libqof/qof/test/gtest-gnc-timezone.cpp | 8 +++++---
src/libqof/qof/test/test-gnc-date.c | 15 ++++++++++++---
src/report/report-system/test/test-report-utilities.scm | 10 ++++++++--
5 files changed, 43 insertions(+), 18 deletions(-)
More information about the gnucash-patches
mailing list