Added date checking to fireplace (bug 1044230)

if you set `window.Date` I think jshint will ignore