vitalets / angular-xeditable

Edit in place for AngularJS
http://vitalets.github.io/angular-xeditable
MIT License
1.91k stars 403 forks source link

Date select is giving 1 day previous date #468

Closed afroz786 closed 7 years ago

afroz786 commented 8 years ago

date issue

selected date is 16 but the value printed is 15 Check the date selected and the date displayed. how to resolve this?

ckosloski commented 8 years ago

The raw date that is printed out is the UTC date. Once it's converted to your timezone, it is a different day.

Voxis commented 8 years ago

The datepicker from angular-ui is picking with your local (browser) time. You have to know what your desired output is and do some pre-processing and/or postprocessing... Not sure if angular-ui's datepicker has any built-in date-options to pick in UTC time, I would like to have that.

ckosloski commented 7 years ago

@eugef I think this issue can be closed.