[med-svn] [SCM] aghermann branch, master, updated. 551e213a23b59b71cba6a9c3a282d1b60e21b854

Andrei Zavada johnhommer at gmail.com
Sun Apr 21 23:18:01 UTC 2013


The following commit has been merged in the master branch:
commit d545acedfd34032feefb4bdb5a71b516fcde66bb
Author: Andrei Zavada <johnhommer at gmail.com>
Date:   Tue Apr 16 19:43:52 2013 +0300

    deal with yyyy as well as yy in edf PatientId

diff --git a/src/common/subject_id.cc b/src/common/subject_id.cc
index be566c6..5f25005 100644
--- a/src/common/subject_id.cc
+++ b/src/common/subject_id.cc
@@ -107,6 +107,8 @@ str_to_dob( const string& s)
 		t.tm_mday = stoi( *f++);
 		t.tm_mon  = str_to_english_month(*f++);
 		t.tm_year = stoi(*f);
+		if ( t.tm_year > 100 )
+			t.tm_year -= 1900;
 		t.tm_isdst = -1;
 		return mktime( &t);
 	} catch (...) {

-- 
Sleep experiment manager



More information about the debian-med-commit mailing list