Skip to content

Don't clobber Date.now #190

@GoogleCodeExporter

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions