mirror of
https://invent.kde.org/frameworks/kimageformats.git
synced 2026-02-18 14:53:00 -05:00
Replace deprecated functions
Improve the code by replacing deprecated functions as suggested by the Qt documentation.
This commit is contained in:
committed by
Albert Astals Cid
parent
085c9c4841
commit
560d0483ae
@ -14,6 +14,7 @@
|
||||
#include <QDebug>
|
||||
#include <QImage>
|
||||
#include <QSet>
|
||||
#include <QTimeZone>
|
||||
|
||||
#if defined(Q_OS_WINDOWS) && !defined(NOMINMAX)
|
||||
#define NOMINMAX
|
||||
@ -222,7 +223,7 @@ QString createTag(char *asciiz, const char *tag)
|
||||
|
||||
QString createTimeTag(time_t time, const char *tag)
|
||||
{
|
||||
auto value = QDateTime::fromSecsSinceEpoch(time, Qt::UTC);
|
||||
auto value = QDateTime::fromSecsSinceEpoch(time, QTimeZone::utc());
|
||||
if (value.isValid() && time > 0) {
|
||||
return createTag(value.toString(Qt::ISODate), tag);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user