mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-30 20:15:35 +08:00
Ref T308, check parsing of YYYYmmdd strings (length)
This commit is contained in:
@@ -332,6 +332,8 @@ namespace BlackMisc
|
||||
|
||||
QDateTime parseDateTimeStringOptimized(const QString &dateTimeString)
|
||||
{
|
||||
if (dateTimeString.length() < 8) { return QDateTime(); }
|
||||
|
||||
// yyyyMMddHHmmsszzz
|
||||
// 01234567890123456
|
||||
int year(dateTimeString.leftRef(4).toInt());
|
||||
|
||||
Reference in New Issue
Block a user