webguys-de / EasyTemplate

42 stars 13 forks source link

[BUGFIX] Fix valid date logic with current date #77

Closed therouv closed 6 years ago

therouv commented 6 years ago

If the validFrom or validTo dates are set to e.g. 08.02.2018 and you view the page on this date, the element is not shown because the timestamp is greater than the validFrom date or validTo date. This is not correct.

This PR fixes this behaviour by use the timestamp of the current store date without the current time of the day.