Tests: fix test not working on MariaDB (unexpected coma tolerated by MySQL)

This commit is contained in:
Romain Quetiez
2023-08-18 12:13:11 +02:00
parent 70081ecf33
commit 03b484c349

View File

@@ -541,7 +541,7 @@ class ExpressionEvaluateTest extends ItopDataTestCase
$oDate = new DateTime($sStartDate);
for ($i = 0 ; $i < $iRepeat ; $i++)
{
$sDate = date_format($oDate, 'Y-m-d, H:i:s');
$sDate = date_format($oDate, 'Y-m-d H:i:s');
$this->debug("Checking '$sDate'");
$this->testEveryTimeFormat($sDate);
$oDate->add(new DateInterval($sInterval));