In _election_normalize_datetime(), if the input is an array with an empty string for the 'date' key, it will run strtotime(). It should consider that date empty and return FALSE. This can lead to spurious "time is in the past" warnings.

Comments

Liam Morland created an issue. See original summary.

  • Liam Morland committed 9baf7cb on 7.x-1.x
    Issue #2918199 by Liam Morland: Improve detection of empty dates in...
liam morland’s picture

Status: Active » Fixed

  • Liam Morland committed 153e3d5 on 7.x-1.x
    Issue #2918199 by Liam Morland: Improve unit test for...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.