gnucash maint: Bug 795080 - Some dates reset to 01/01/1970

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

gnucash maint: Bug 795080 - Some dates reset to 01/01/1970

John Ralls-4
Updated via  https://github.com/Gnucash/gnucash/commit/0e723610 (commit)
        from  https://github.com/Gnucash/gnucash/commit/19b3643a (commit)



commit 0e723610f0cb23515f564bc87e6b0b2f16577f5b
Author: John Ralls <[hidden email]>
Date:   Fri Nov 2 10:29:52 2018 -0700

    Bug 795080 - Some dates reset to 01/01/1970
   
    The first fix for this bug handled structs tm with ambiguous times.
    This one fixes the GncDate constructor when the time is ambiguous
    because it's in the DST-change hour, using the same add 3 hours,
    construct the LDT, and subtract the 3 hours from the result.
   
    The string constructor handles only simple-offset HH:MM timezones and so
    is immune to the bug.



Summary of changes:
 libgnucash/engine/gnc-datetime.cpp            | 59 +++++++++++++++++++++------
 libgnucash/engine/test/gtest-gnc-datetime.cpp | 22 ++++++++++
 po/POTFILES.in                                |  1 +
 3 files changed, 69 insertions(+), 13 deletions(-)

_______________________________________________
gnucash-patches mailing list
[hidden email]
https://lists.gnucash.org/mailman/listinfo/gnucash-patches