UTCTime: fix short variant v_0
authorFrantišek Kučera <franta-hg@frantovo.cz>
Mon, 05 Jul 2021 19:31:25 +0200
branchv_0
changeset 28 fade2f562970
parent 27 d9cc2d356cdb
child 29 c232d8b8efbf
UTCTime: fix short variant
src/lib/BasicASN1Reader.h
--- a/src/lib/BasicASN1Reader.h	Sun Jul 04 11:51:13 2021 +0200
+++ b/src/lib/BasicASN1Reader.h	Mon Jul 05 19:31:25 2021 +0200
@@ -211,7 +211,8 @@
 				dateTime.hour = std::stoi(match[i++]);
 				dateTime.minute = std::stoi(match[i++]);
 				dateTime.precision = match[i].length() ? ASN1ContentHandler::DateTime::Precision::Second : ASN1ContentHandler::DateTime::Precision::Minute;
-				dateTime.second = match[i].length() ? std::stoi(match[i++]) : 0;
+				dateTime.second = match[i].length() ? std::stoi(match[i]) : 0;
+				i++;
 				if (match[i++] != "Z") {
 					dateTime.timezoneHour = std::stoi(match[i++]);
 					dateTime.timezoneMinute = std::stoi(match[i++]);