Changeset 698 for branches/0.6-stable


Ignore:
Timestamp:
Nov 18, 2008, 4:57:33 PM (12 years ago)
Author:
Peter Johansson
Message:

fixes #356. This bug was fixed in trunk in r503 and r504.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/0.6-stable/lib/Date.cc

    r685 r698  
    117117    std::stringstream sstream(str);
    118118    struct tm* timeinfo = std::localtime(&time_);
     119    time_t timezone_correction = timeinfo->tm_gmtoff;
    119120
    120121    unsigned int year, month, day, hour, minute, second;
     
    145146
    146147    time_ = mktime(timeinfo);
    147     time_ += timeinfo->tm_gmtoff;
     148    time_ += timezone_correction;
    148149  }
    149150
Note: See TracChangeset for help on using the changeset viewer.