mirror of
https://github.com/pocoproject/poco.git
synced 2025-01-19 00:46:03 +01:00
01d998dcc2
* Foundation/src/LocalDateTime.cpp - Fixed Sourceforge tracker 1800031. The time zone differential was not being maintained in many places. There are some minor functionality changes with this changeset however. * Assignment methods which do not take the full time information or a tzd as parameters will adjust the time stamp for DST according to the time specified. The only methods that do not fall under this constraint are: - constructors or assigns which accept year, month, day, etc. - constructors or assigns which accept a tzd * operators += and -= correctly adjust for DST boundary crossings. * operators + and - will return a LocalDateTime instance that has been adjust for DST boundary crossings. * Foundation/testsuite/src/LocalDateTimeTest.h * Foundation/testsuite/src/LocalDateTimeTest.cpp - Added testTimezone method. - Removed an assertion in testGregorian1() that would fail when the current DST offset differed from that of 1970-1-1.