formatjs / dust-intl

Dust helpers for internationalization.
http://formatjs.io/dust/
Other
48 stars 11 forks source link

Support formatting the epoch (0) date value #48

Closed ericf closed 9 years ago

ericf commented 9 years ago

This now validates dates to provide helpful error messages. The validation method it uses will support the epoch date as well.

yahoocla commented 9 years ago

CLA is valid!

juandopazo commented 9 years ago

Looks correct overall. Intl.DateTimeFormat normally expects a Date object, so removing the getTime() call makes sense to me.