Skip to content

Commit

Permalink
Merge pull request #861 from UN-OCHA/RW-1001-fix
Browse files Browse the repository at this point in the history
fix: entity dates....
  • Loading branch information
orakili committed Jul 29, 2024
2 parents 4d170ed + cb3d040 commit e5d392f
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 e5d392f

Please sign in to comment.