TicketUtils: fix date format string

This commit is contained in:
Siegfried Siegert 2024-08-08 10:17:11 +02:00
parent f20957c14a
commit 5898be8807
Signed by: SiegfriedSiegert
GPG Key ID: 68371E015E8F0B03

View File

@ -16,7 +16,7 @@ QString TicketUtils::getLocaleDateString(const QLocale & qLocale, const QDate &
if (qLocale.language() == QLocale::Lithuanian) { if (qLocale.language() == QLocale::Lithuanian) {
// QLocale::ShortFormat produces date string: "yyyy-mm-dd" ... // QLocale::ShortFormat produces date string: "yyyy-mm-dd" ...
// this is to long for the printer. // this is to long for the printer.
dateString = qDate.toString("YY-MM-dd"); dateString = qDate.toString("yy-MM-dd");
} }
else { else {
dateString = qLocale.toString(qDate, QLocale::ShortFormat); dateString = qLocale.toString(qDate, QLocale::ShortFormat);