Michel Couillard
Michel Couillard
@ErickXavier please mare sure you use at least version Angular Material Datepicker 1.13.0 from my fork: https://github.com/beenote/angular-material-datetimepicker. Which browser is that?
`md-dialog` normally open at the center of the screen. Maybe, you can supply your own CSS to override the default ones. ``` .dtp .md-dialog-container { position: absolute; } ```
Does that solved the issue? I think changing the included CSS will maybe break some other use case.
In the demo for the ng-model it's the current date-time: `$scope.date = new Date();` For your case, use something like this: `$scope.date = moment().startOf('day');`
Ok this seems to be an issue then: https://github.com/logbon72/angular-material-datetimepicker/blob/master/js/angular-material-datetimepicker.js#L142 I think we should add: ``` if (scope.time) { scope.currentDate = moment(scope.currentDate, scope.format); } else { scope.currentDate = moment(scope.currentDate, scope.format).startOf('day'); }...
@adirizky31 are you using the mdcDateTimeDialog? I've played with the demo, when the time is set before. It will not move after, when there is no clock picker at least.
@PhilDore11 yes it should, but the end result you want is a js date shifted to local utc or a moment utc? I've made a special case when the ng-model...
Can you have a look? before I make a version of it. https://github.com/beenote/angular-material-datetimepicker/commit/77d4ccd0fcf188c5fdfc17dbd71b76c721a37c1d You need at least angular 1.6
@ajmueller I added the Hard-coded Timezone test. You can run this project with nodejs lite-server and play with the index.html file if you like. Pre-release: https://github.com/beenote/angular-material-datetimepicker/releases/tag/v1.12.0 I normally remove the...
Ok fixed here: https://github.com/beenote/angular-material-datetimepicker/commit/d249b57031a30118d3569562db0ff4063ccb9962