current date default format string

Added a default format for date/time tag DOL_PRINT_CURR_DATE
This commit is contained in:
Giovanni Vella 2021-10-24 12:07:23 +02:00
parent 037c36abf0
commit a855ef1329

View File

@ -712,7 +712,8 @@ class dolReceiptPrinter extends Printer
$this->printer->text($title.$spaces.str_pad(price($object->total_ttc), 10, ' ', STR_PAD_LEFT)."\n");
break;
case 'DOL_PRINT_CURR_DATE':
$this->printer->text(date($vals[$tplline]['value'])."\n");
if (strlen($vals[$tplline]['value'])<2) $this->printer->text(date('d/m/Y H:i:s')."\n");
else $this->printer->text(date($vals[$tplline]['value'])."\n");
break;
case 'DOL_LINE_FEED':
$this->printer->feed();