Skip to content

Commit 8cbcaab

Browse files
authored
[5.3] Fix date format to use ISO 8601 in SchemaorgPrepareDateTrait (joomla#45581)
1 parent a4fa04d commit 8cbcaab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/src/Schemaorg/SchemaorgPrepareDateTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,6 @@ protected function prepareDate($date)
4848
return $newDates;
4949
}
5050

51-
return Factory::getDate($date)->format('Y-m-d');
51+
return Factory::getDate($date)->setTime(0, 0)->format(\DateTime::ATOM);
5252
}
5353
}

0 commit comments

Comments
 (0)