use simple iso string

This commit is contained in:
Martin Brodbeck 2018-08-06 21:31:40 +02:00
parent f45e295c75
commit 1607f8946e
3 changed files with 9 additions and 2 deletions

View file

@ -144,7 +144,7 @@ void PosPrinter::printSaleReceipt(Sale* sale)
std::stringstream commandStream;
printHeader();
commandStream << Command::RESET << Command::ENCODING << Command::RIGHT_ALIGN;
commandStream << sale->getTimestamp() << "\n\n";
commandStream << sale->getTimestampFormatted() << "\n\n";
commandStream << Command::LEFT_ALIGN;
for (const auto& article : sale->getArticles()) {
commandStream << "Art. " << article->getCompleteArticleNo() << "........... "