zhaber / ng-bootstrap-datetimepicker

:calendar::clock2: Angular Bootstrap Date Time Picker
MIT License
149 stars 57 forks source link

Problem with date binding #125

Closed Valerio81 closed 8 years ago

Valerio81 commented 8 years ago

Hi, I have this JSON from backend [{"parameterName":"@test","parameterType":"datetime","parameterValue":"2016-09-05T10:34:31.1106788Z","parameterLength":null,"parameterDescription":"Inserisci la data"},{"parameterName":"@test2","parameterType":"int","parameterValue":0,"parameterLength":null,"parameterDescription":"inserisci l\u0027intero"}] When page is loaded and binded with this JSON, datetimepicker is not correctly binded (I am in UTC +02:00 timezone) image

zhaber commented 8 years ago

Please provide a plunker where I can reproduce the problem. http://plnkr.co/edit/s6Gm8x8ExndUj6EBYbhi?p=preview

Valerio81 commented 8 years ago

Here the plunker

http://plnkr.co/edit/GYcsRL

zhaber commented 8 years ago

It's expected for the string to be Date. You can try the latest version that supports string input but the output will be still Date.

Valerio81 commented 8 years ago

Thank you very much.