DateTime.patch 416 B

12345678910111213141516
  1. diff --git a/src/core/utils.cpp b/src/core/utils.cpp
  2. index 5346bd4..3ba7122 100644
  3. --- a/src/core/utils.cpp
  4. +++ b/src/core/utils.cpp
  5. @@ -44,8 +44,5 @@ QString Utils::bool2Str(bool val)
  6. QString Utils::ts2Str(quint64 ts)
  7. {
  8. - QDateTime dt;
  9. - dt.setTime_t(ts);
  10. - dt.setTimeSpec(Qt::UTC);
  11. - return dt.toString(Qt::ISODate);
  12. + return QDateTime::fromTime_t(ts, Qt::UTC, 0).toString(Qt::ISODate);
  13. }
  14. --