Add test code for printing date-strings

This commit is contained in:
Siegfried Siegert 2024-08-08 10:21:55 +02:00
parent 5898be8807
commit 3e4db6cfcc
Signed by: SiegfriedSiegert
GPG Key ID: 68371E015E8F0B03

View File

@ -736,6 +736,19 @@ void ATBDeviceControllerPlugin::requestPrintTicket(const QHash<QString, QVariant
QString parkingEndDateString = TicketUtils::getLocaleDateString(this->printerLocale, parkingEndDateTime.date());
QString currentDateString = TicketUtils::getLocaleDateString(this->printerLocale, currentDateTime.date());
/*******************************************************************************************
* TEST date formate strings:
QLocale ltLocale("lt_LT");
QLocale deLocale("de_DE");
QString ltShortDate = ltLocale.toString(currentDateTime.date(), QLocale::ShortFormat);
QString deShortDate = deLocale.toString(currentDateTime.date(), QLocale::ShortFormat);
qCritical() << "*********************************************************************";
qCritical() << " ltShortDate = " << ltShortDate;
qCritical() << " deShortDate = " << deShortDate;
qCritical() << "*********************************************************************";
*/
/* -----------------------------------------------------------------------------------------
* note: the following highly depends on printer template files!