cTimeFormat/cDateFormat -> QLocale::ShortFormat
This allows to use platform-specific formatting functions
This commit is contained in:
@@ -220,9 +220,7 @@ QString langDateTime(const QDateTime &date) {
|
||||
lt_date,
|
||||
langDayOfMonth(date.date()),
|
||||
lt_time,
|
||||
QLocale().toString(
|
||||
date.time(),
|
||||
Ui::Integration::Instance().timeFormat()));
|
||||
QLocale().toString(date.time(), QLocale::ShortFormat));
|
||||
}
|
||||
|
||||
QString langDateTimeFull(const QDateTime &date) {
|
||||
@@ -231,7 +229,5 @@ QString langDateTimeFull(const QDateTime &date) {
|
||||
lt_date,
|
||||
langDayOfMonthFull(date.date()),
|
||||
lt_time,
|
||||
QLocale().toString(
|
||||
date.time(),
|
||||
Ui::Integration::Instance().timeFormat()));
|
||||
QLocale().toString(date.time(), QLocale::ShortFormat));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user