The following commit has been merged in the master branch:
commit d545acedfd34032feefb4bdb5a71b516fcde66bb
Author: Andrei Zavada <[email protected]>
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

_______________________________________________
debian-med-commit mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-med-commit

Reply via email to