diff options
author | Timur Pocheptsov <timur.pocheptsov@qt.io> | 2017-07-14 10:40:49 +0200 |
---|---|---|
committer | Timur Pocheptsov <timur.pocheptsov@qt.io> | 2017-07-18 13:09:16 +0000 |
commit | 07c0e0fdcf6ccea2a60b2acc7059f56a834ad040 (patch) | |
tree | 93f190225e8964d1384cc13ba19c26fb01ff1384 /qmake/project.cpp | |
parent | 4a7ec2d9b0c353d40ab9702e8d7b7fdab52dfd0e (diff) |
QAsn1Element - fix toDateTime function
ASN UTCTime uses two characters to encode a year (YY). When converting it
into QDate, it's quite naive to just add 2000. According to RFC 2459,
these YY represent dates in the range [1950, 2049].
This patch also introduces a helper function doing the checked conversion
from a string to int (to be reused in the following-up patches).
Task-number: QTBUG-61934
Change-Id: I3f6f471d24e8357b83b2f5973023b2b842751389
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
Diffstat (limited to 'qmake/project.cpp')
0 files changed, 0 insertions, 0 deletions