Skip to content

Don't clobber Date.now #190

Description

@GoogleCodeExporter
It looks like the locally defined Date.now() is only used in a few places. 
Normally, Date.now() returns the EPOCH ms but Date.js redefines it to return 
new Date().

Instead of 
Date.now = function() { return new Date(); }

I would do something like
Date.nowAsDate = function() { return new Date(); } 

and update calls to Date.now() accordingly.

ref
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects
/Date/now

Original issue reported on code.google.com by chad.arm...@cloudsherpas.com on 18 Jul 2014 at 3:59

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions