#451 operator+= for Poco::DateTime incorrect

open
nobody
5
2012-09-14
2011-06-20
Anonymous
No
date_hour = Poco::DateTimeParser::parse(datetime_format,target_for_date_const,tzd);
std::cout << "Year: " << date_hour.year() << std::endl; // prints 2011 (OK)
Poco::Timespan span = Poco::Timespan(0,step,0,0,0);
date_hour=date_hour + span;
std::cout << "Year: " << date_hour.year() << std::endl; // prints  -2394 (NOT OK)

Platform: x86-64 Linux
Version: trunk

Discussion

  • This bug is invalid. (I am the reporter.)

     
  • not able to reproduce