Michel Couillard
Michel Couillard
The quickest solution will be having a plus and minus button. Is it enought?
Since 1.7.0 https://github.com/beenote/angular-material-datetimepicker minute-steps="1" and you have to select with mouse down / move or touch move.
Use this fork: https://github.com/beenote/angular-material-datetimepicker This one is not actively maintened anymore.
By default, moment parses and displays in local time. // 2017-10-19T10:35:24-08:00 But your server and javascript object should/must be in UTC. Your can use [getTimezoneOffset()](https://www.w3schools.com/jsref/jsref_gettimezoneoffset.asp) to pass the value to...
Which javascript REST lib are you using? moment.js 2.18.1 and other deps version? I'm using angular-resource 1.6.6 that auto transform with angular.fromJson and I don't have the issue you described.
You can now force the timezone by adding this in the html: `ng-model-options="{timezone: 'utc'}"` or `ng-model-options="{timezone: '+0200'}"` https://github.com/beenote/angular-material-datetimepicker/releases/tag/v1.13.0
Which browser, Safari 11? also complete dependencies versions please.
As a workaround we use this: https://github.com/lgalfaso/angular-dynamic-locale and $localeChangeSuccess.
Ok I'll check your PR. Yes I wanted to contribute to this repo, but our the version used by our organization is now more up to date.
https://github.com/beenote/angular-material-datetimepicker/releases/tag/v1.8.2