UI: DateUtil: Minor refactor

This commit is contained in:
Nodir Temirkhodjaev 2023-08-01 17:15:57 +05:00
parent df412a3643
commit 07de23fc6a
2 changed files with 2 additions and 2 deletions

View File

@ -121,7 +121,7 @@ quint8 DateUtil::parseTimeMinute(const QString &period)
return quint8(toStringView(period).right(2).toUInt());
}
QString DateUtil::localeDateTime(const QDateTime &dateTime, const QLocale::FormatType &format)
QString DateUtil::localeDateTime(const QDateTime &dateTime, QLocale::FormatType format)
{
return QLocale().toString(dateTime, format);
}

View File

@ -41,7 +41,7 @@ public:
Q_INVOKABLE static quint8 parseTimeHour(const QString &period);
Q_INVOKABLE static quint8 parseTimeMinute(const QString &period);
static QString localeDateTime(const QDateTime &dateTime, const QLocale::FormatType &format);
static QString localeDateTime(const QDateTime &dateTime, QLocale::FormatType format);
};
#endif // DATEUTIL_H