Core: Use Date.now when possible and normalize calls otherwise.

Fixes #544