Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Make MythDate::fromString() set the timespec to Qt::UTC.

This was causing problem in the PBB.
  • Loading branch information...
commit 8143b407a6f1aa44981c9e4fe8cb0dd4700acaeb 1 parent bb40b6e
@daniel-kristjansson daniel-kristjansson authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 mythtv/libs/libmythbase/mythmiscutil.cpp
View
4 mythtv/libs/libmythbase/mythmiscutil.cpp
@@ -79,7 +79,7 @@ QDateTime fromString(const QString &dtstr)
{
QDateTime dt;
if (dtstr.isEmpty())
- return dt;
+ return as_utc(dt);
if (!dtstr.contains("-") && dtstr.length() == 14)
{
@@ -91,7 +91,7 @@ QDateTime fromString(const QString &dtstr)
dt = QDateTime::fromString(dtstr, Qt::ISODate);
}
- return dt;
+ return as_utc(dt);
}
MBASE_PUBLIC QDateTime fromString(const QString &str, const QString &format)
Please sign in to comment.
Something went wrong with that request. Please try again.