Commit dd22ac57 authored by Volker Krause's avatar Volker Krause

Port away from KLocale

parent 61f86a5c
......@@ -22,7 +22,7 @@
#include <KCalCore/Period>
#include <KLocale>
#include <KLocalizedString>
#include <KFormat>
#include <KSystemTimeZones>
......@@ -169,8 +169,8 @@ QString FreePeriodModel::stringify(int index) const
KCalCore::Period period =;
const QDate startDate = period.start().date();
const QString startTime = KLocale::global()->formatTime(period.start().time(), false, true);
const QString endTime = KLocale::global()->formatTime(period.end().time(), false, true);
const QString startTime = QLocale().toString(period.start().time(), QLocale::ShortFormat);
const QString endTime = QLocale().toString(period.end().time(), QLocale::ShortFormat);
const QString longMonthName = QLocale::system().monthName(startDate.month(), QLocale::LongFormat);
const QString dayofWeek = QLocale::system().dayName(startDate.dayOfWeek(), QLocale::LongFormat);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment