Replace time() with DateTime's getTimestamp()
Correct operator in Time::isPast()
Merge pull request #2237 from bcrowe/hotfix-replaceTime

3.0 - Replace time() with DateTime's getTimestamp()