indrimuska / angular-moment-picker

Angular Moment Picker is an AngularJS directive for date and time picker using Moment.js.
http://indrimuska.github.io/angular-moment-picker/
MIT License
525 stars 226 forks source link

Set ng-model in UTC #194

Closed pilouk closed 7 years ago

pilouk commented 7 years ago

Is there a way that the ng model is the UTC of the current selected date ?

ng-model-options="{timezone: 'utc'}" doesn't seem to be supported

kkiernan commented 7 years ago

I am actually having the opposite problem. It seems to display in the local timezone, but the model value is UTC. You don't see the same thing?

Edit: What version are you using? Maybe it was updated at some point?

pilouk commented 7 years ago

Ur right i realize it when i pushed it to my server. So it's solved my problem

On Aug 7, 2017 9:02 AM, "Kelly Kiernan" notifications@github.com wrote:

I am actually having the opposite problem. It seems to display in the local timezone, but the model value is UTC. You don't see the same?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/indrimuska/angular-moment-picker/issues/194#issuecomment-320657219, or mute the thread https://github.com/notifications/unsubscribe-auth/ABwWegSWqBSqb8qal-dVuzSJIKYjx4Yvks5sVwrogaJpZM4N74rn .