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

Create new WallTimeDate object to replace returned TimeZoneTime #25

Open jgable opened 11 years ago

jgable commented 11 years ago

Should inherit from native Date prototype ideally so that libraries that check for object type of Date are satisfied (looking at you jquery UI calendar).

Should probably encapsulate a TimeZoneTime but implement the setX functionality in such a way that the underlyingTimeZoneTime is recreated. This will keep our TimeZoneTime safe as an immutable object like I prefer and move the set functions into a higher level of abstraction (see issue #20 for discussion).

BirdInTheCity commented 11 years ago

Has there been any progress on this? I'm completely new to Javascript, so I think I'm ill-equipped to take it on myself. I would definitely love to see it though. This library has already proven to be very helpful for me.

jgable commented 11 years ago

Sorry, have other things on my plate currently. But, there's been a lot of interest this week so I'm planning on trying to knock some of these 1.0 tasks out soon.