Update pdf_standard.class.php

This commit is contained in:
Laurent Destailleur 2020-09-09 14:46:42 +02:00 committed by GitHub
parent 221c54c16f
commit b99192bdb2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -251,10 +251,11 @@ class pdf_standard extends CommonStickerGenerator
{
if ($object->country == '-') $object->country = '';
$year = date('Y', dol_now())
$month = date('m', dol_now())
$day = date('d', dol_now())
$now = dol_now();
$year = dol_print_date($now, '%Y');
$month = dol_print_date($now, '%m');
$day = dol_print_date($now, '%d');
// List of values to scan for a replacement
$substitutionarray = array(
'__ID__' => $object->id,