sproutsocial / walltime-js

A JavaScript library for easily translating a UTC time to a "Wall Time" for a particular time zone.
MIT License
121 stars 12 forks source link

Implement WallTime.addRulesZones(rules,zones) method #19

Closed jacobg closed 11 years ago

jacobg commented 11 years ago

There should be a method WallTime.addRulesZones(rules,zones) so that an application can append new rules/zones after init has taken place (lazy add). This method would be similar to WallTime.init(rules,zones), except that it would not initialize member properties and maybe it would even check that zone/rule does not exist before setting it. The init() method could also re-factor to call addRulesZones so that it is DRY.

jacobg commented 11 years ago

You're awesome!