Core: Use Date.now when possible and normalize on new Date().getTime()

Fixes gh-544
Closes gh-545