Permalink
Browse files

SVN timestamps are in GMT so use timegm() rather than mktime() to con…

…vert them.
  • Loading branch information...
1 parent 1b6db7c commit 19badc71fd5d9468df80fa49083dc49994f1c4c2 @acaudwell committed Sep 13, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/svn.cpp
View
@@ -173,7 +173,7 @@ bool SVNCommitLog::parseCommit(RCommit& commit) {
time_str.tm_sec = atoi(entries[5].c_str());
time_str.tm_isdst = -1;
- commit.timestamp = mktime(&time_str);
+ commit.timestamp = timegm(&time_str);
//parse author
TiXmlElement* authorE = leE->FirstChildElement("author");

0 comments on commit 19badc7

Please sign in to comment.