yui/yui3-gallery — pull request #21 by robin900 (2012-10-26 13:44:01+00:00)
Title: 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.