Add test code for printing date-strings
This commit is contained in:
		@@ -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!
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user