Meteor-Community-Packages / meteor-autoform-bs-datepicker

Custom "bootstrap-datepicker" input type for AutoForm
MIT License
25 stars 32 forks source link

Datepicker a day behind #28

Closed joerodrig closed 7 years ago

joerodrig commented 9 years ago

Ie. If I choose June 13th as a date, the date is actually input as June 12th.

This causes some issues with setting a min date using " new Date()" in a collection as that generates the current day

nspangler commented 9 years ago

@joerodrig3 I was able to fix the issue in my case by the following change for the millisecond or "NUMBER" date type.

https://github.com/aldeed/meteor-autoform-bs-datepicker/compare/master...nspangler:patch-1

aldeed commented 7 years ago

Dates are UTC. Make sure you take that into account wherever you display them.