Changeset 0f5ff3a982de4d57ffc4c836d72e9d1d985ca8cc

Show
Ignore:
Timestamp:
02/07/10 13:20:42 (2 years ago)
Author:
Antti-Juhani Kaijanaho <antti-juhani@…>
Children:
3fef1388d6255694b9d7f376fa51b28ea2df1723
Parents:
0311b9245ec8c44742b0b7313b8a40635e5494c4
git-committer:
Antti-Juhani Kaijanaho <antti-juhani@…> (02/07/10 13:20:42)
Message:

Fix timezone adjustment in date parsing

Addresses #50

Signed-off-by: Antti-Juhani Kaijanaho <antti-juhani@…>

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • msg/msg.cc

    rb56019b r0f5ff3a  
    326326                int tz_m = tz.length() > 4  
    327327                        ? (tz[3] - '0') * 10 + (tz[4] - '0') : 0; 
    328                 if (tz.length() > 0 && tz[0] == '+') { 
     328                if (tz.length() > 0 && tz[0] == '-') { 
    329329                        rv += boost::posix_time::hours(tz_h); 
    330330                        rv += boost::posix_time::minutes(tz_m);