Merge pull request #24016 from atm-gauthier/fix_missing_w_option_in_dol_print_date
FIX : missing w option in dol_print_date
This commit is contained in:
commit
e5341c3b06
@ -2696,8 +2696,8 @@ function dol_print_date($time, $format = '', $tzoutput = 'auto', $outputlangs =
|
|||||||
$dtts->setTimestamp($time);
|
$dtts->setTimestamp($time);
|
||||||
$dtts->setTimezone($tzo);
|
$dtts->setTimezone($tzo);
|
||||||
$newformat = str_replace(
|
$newformat = str_replace(
|
||||||
array('%Y', '%y', '%m', '%d', '%H', '%I', '%M', '%S', '%p', 'T', 'Z', '__a__', '__A__', '__b__', '__B__'),
|
array('%Y', '%y', '%m', '%d', '%H', '%I', '%M', '%S', '%p', '%w', 'T', 'Z', '__a__', '__A__', '__b__', '__B__'),
|
||||||
array('Y', 'y', 'm', 'd', 'H', 'h', 'i', 's', 'A', '__£__', '__$__', '__{__', '__}__', '__[__', '__]__'),
|
array('Y', 'y', 'm', 'd', 'H', 'h', 'i', 's', 'A', 'w', '__£__', '__$__', '__{__', '__}__', '__[__', '__]__'),
|
||||||
$format);
|
$format);
|
||||||
$ret = $dtts->format($newformat);
|
$ret = $dtts->format($newformat);
|
||||||
$ret = str_replace(
|
$ret = str_replace(
|
||||||
@ -2722,8 +2722,8 @@ function dol_print_date($time, $format = '', $tzoutput = 'auto', $outputlangs =
|
|||||||
$dtts->setTimestamp($timetouse);
|
$dtts->setTimestamp($timetouse);
|
||||||
$dtts->setTimezone($tzo);
|
$dtts->setTimezone($tzo);
|
||||||
$newformat = str_replace(
|
$newformat = str_replace(
|
||||||
array('%Y', '%y', '%m', '%d', '%H', '%I', '%M', '%S', '%p', 'T', 'Z', '__a__', '__A__', '__b__', '__B__'),
|
array('%Y', '%y', '%m', '%d', '%H', '%I', '%M', '%S', '%p', '%w', 'T', 'Z', '__a__', '__A__', '__b__', '__B__'),
|
||||||
array('Y', 'y', 'm', 'd', 'H', 'h', 'i', 's', 'A', '__£__', '__$__', '__{__', '__}__', '__[__', '__]__'),
|
array('Y', 'y', 'm', 'd', 'H', 'h', 'i', 's', 'A', 'w', '__£__', '__$__', '__{__', '__}__', '__[__', '__]__'),
|
||||||
$format);
|
$format);
|
||||||
$ret = $dtts->format($newformat);
|
$ret = $dtts->format($newformat);
|
||||||
$ret = str_replace(
|
$ret = str_replace(
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user