Skip to content
Browse files

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

This was causing problem in the PBB.
  • Loading branch information...
1 parent bb40b6e commit 8143b407a6f1aa44981c9e4fe8cb0dd4700acaeb @daniel-kristjansson daniel-kristjansson committed May 20, 2012
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)

0 comments on commit 8143b40

Please sign in to comment.
Something went wrong with that request. Please try again.