adopted-ember-addons / ember-validators

A collection of EmberJS validators
Other
24 stars 40 forks source link

Add an option to display date in UTC in date validators #50

Open GreatWizard opened 7 years ago

GreatWizard commented 7 years ago

Currently I have some problems with date error messages. The date can be wrong regarding the timezone of my users.

I add an option to the date validatator to compute Date by keeping the UTC offset, then the moment#format() function is able to display date in UTC mode.