captbaritone / captbaritone/datejs
Don't clobber Date.now
Open
auto-migrated
Priority-Medium
Type-Defect
- Dominant language
- JavaScript
- Stars
- 1
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
```
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
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.