Revert post-construction adjustment of ldt for DST.

It was incorrect.\nMake corresponding adjustment to far eastern offset in neutral time adjustment.
This commit is contained in:
John Ralls 2017-12-15 10:12:01 -08:00
parent a5134f91e1
commit ac0d335c4f

View File

@ -165,8 +165,6 @@ LDT_from_struct_tm(const struct tm tm)
tm.tm_sec, 0);
auto tz = tzp.get(tdate.year());
LDT ldt(tdate, tdur, tz, LDTBase::EXCEPTION_ON_ERROR);
if (tm.tm_isdst == -1 && ldt.is_dst())
ldt += tz->dst_offset();
return ldt;
}
catch(boost::gregorian::bad_year)
@ -255,7 +253,7 @@ GncDateTimeImpl::GncDateTimeImpl(const GncDateImpl& date, DayPart part) :
if (offset < hours(-10))
m_time -= hours(offset.hours() + 10);
if (offset > hours(13))
m_time -= hours(offset.hours() - 10);
m_time -= hours(offset.hours() - 11);
}
}
catch(boost::gregorian::bad_year)