@@ -0,0 +1,15 @@
|
||||
diff --git a/src/core/utils.cpp b/src/core/utils.cpp
|
||||
index 5346bd4..3ba7122 100644
|
||||
--- a/src/core/utils.cpp
|
||||
+++ b/src/core/utils.cpp
|
||||
@@ -44,8 +44,5 @@ QString Utils::bool2Str(bool val)
|
||||
|
||||
QString Utils::ts2Str(quint64 ts)
|
||||
{
|
||||
- QDateTime dt;
|
||||
- dt.setTime_t(ts);
|
||||
- dt.setTimeSpec(Qt::UTC);
|
||||
- return dt.toString(Qt::ISODate);
|
||||
+ return QDateTime::fromTime_t(ts, Qt::UTC, 0).toString(Qt::ISODate);
|
||||
}
|
||||
--
|
||||
@@ -37,6 +37,9 @@
|
||||
<Dependency>qt5-linguist</Dependency>
|
||||
<Dependency>qt5-location-devel</Dependency>
|
||||
</BuildDependencies>
|
||||
<Patches>
|
||||
<Patch level="1">DateTime.patch</Patch>
|
||||
</Patches>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
|
||||
Reference in New Issue
Block a user