Hi Dolibarr community,
After upgrading to v14.0.3 I got this error on core\lib\functions.lib.php:
Warning : DateTime::setTimestamp() expects parameter 1 to be integer, string given in… line 2292
$user_dt->setTimestamp($tzoutput == 'tzuser' ? dol_now() : $time);
After casting it to (int) errors are gone.
$user_dt->setTimestamp((int)$tzoutput == 'tzuser' ? dol_now() : $time);
Not sure if this is the correct fix for this one…?
Please advise.
Thank you!
fr69
2
Update file : htdocs\core\lib\functions.lib.php.
Add after line n°2267
if (dol_strlen($time) == 0) {
return '';
}
You get :
Fix allready send to github
Hello, fr69.
Thank you so much for providing a solution.
I added the additional code and removed the (int) casting.
The changes work perfectly.