Skip to content

Commit

Permalink
fix: entity dates....
Browse files Browse the repository at this point in the history
Refs: RW-1001
  • Loading branch information
orakili committed Jul 29, 2024
1 parent 373be29 commit cb3d040
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ public function getReferencedEntityIds($field) {
* @see Drupal\reliefweb_entities\DocumentInterface::createDate()
*/
public function createDate($date) {
if (is_scalar($date) && $date !== '') {
if (is_scalar($date) && $date === '') {
return NULL;
}
$date = is_numeric($date) ? '@' . $date : $date;
Expand Down

0 comments on commit cb3d040

Please sign in to comment.