QDateTimeParser: Correct a comment which was exactly wrong
Change-Id: I90c2b2bce4aeb5fe9edf70122c6546976583e1bf Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
This commit is contained in:
parent
edf9b23145
commit
1c359df621
@ -4076,7 +4076,7 @@ qint64 QDateTime::toMSecsSinceEpoch() const
|
||||
case Qt::LocalTime: {
|
||||
// recalculate the local timezone
|
||||
auto status = extractDaylightStatus(getStatus(d));
|
||||
// If short, use offset saved by refreshZonedDateTime() on creation:
|
||||
// If available, use offset saved by refreshZonedDateTime() on creation:
|
||||
if (!d.isShort())
|
||||
return d->m_msecs - d->m_offsetFromUtc * MSECS_PER_SEC;
|
||||
// Offset from UTC not recorded: need to recompute.
|
||||
|
Loading…
Reference in New Issue
Block a user