Don't mutate Date objects to get relative time #21

Closed
wants to merge 1 commit into
from

2 participants

@robin900

The .setHours() call on the Date objects surprised me when writing an app that uses this module. Making a safe copy of both Date objects if (!time) seems not to pose a performance cost.

@robin900 robin900 Don't mutate Date objects to get relative time
The .setHours() call on the Date objects surprised me when writing an app that uses this module. Making a safe copy of both Date objects if (!time) seems not to pose a performance cost.
7a8116f
@davglass
YUI Library member

We don't accept pull requests to modules here, you need to submit this pull request to the owner of the module.

@davglass davglass closed this Oct 26, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment