villaitatti / VeNiss

0 stars 0 forks source link

Datepicker Patch (PR for locale bug) #139

Open RemoGrillo opened 11 months ago

RemoGrillo commented 11 months ago

there's a bug in the datepicker deriving from the management of XSD locales (ZZ values). When you insert a date, sometimes you get a -1 date as "input" valorized value.

return utcMoment.clone().subtract(localOffset, 'm').local();

This line is problematic because the locale is automatically inferred.