mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Date string parser. Fix build error. Set UTC time spec
This commit is contained in:
@@ -47,7 +47,10 @@ QDateTime RiaDateStringParser::parseDateString(const QString& dateString)
|
||||
tryParseYearFirst(s, year, month, day) ||
|
||||
tryParseDayFirst(s, year, month, day);
|
||||
|
||||
return parsedOk ? QDateTime(QDate(year, month, day)) : QDateTime();
|
||||
QDateTime dt;
|
||||
dt.setTimeSpec(Qt::UTC);
|
||||
if (parsedOk) dt.setDate(QDate(year, month, day));
|
||||
return dt;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user