material icon indicating copy to clipboard operation
material copied to clipboard

fix(datepicker): issues in UTC+x time zones when ng-model-options="{timezone: 'UTC'}" is set

Open vdrasutis opened this issue 2 years ago • 1 comments

…9: https://github.com/angular/material/issues/12149

AngularJS Material is in LTS mode

We are no longer accepting changes that are not critical bug fixes into this project. See Long Term Support for more detail.

PR Checklist

Please check your PR fulfills the following requirements:

  • [ ] Does this PR fix a regression since 1.2.0, a security flaw, or a problem caused by a new browser version?
  • [ ] The commit message follows our guidelines
  • [ ] Tests for the changes have been added or this is not a bug fix / enhancement
  • [ ] Docs have been added, updated, or were not required

PR Type

What kind of change does this PR introduce?

[ ] Bugfix
[ ] Enhancement
[ ] Documentation content changes
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Infrastructure changes
[ ] Other... Please describe:

What is the current behavior?

Fixes #

What is the new behavior?

Does this PR introduce a breaking change?

[ ] Yes
[ ] No

Other information

vdrasutis avatar Feb 19 '22 22:02 vdrasutis

P.S. I think this fix will be ok when passed time zone is UTC +00:00 - but when different time zone is passed might not work properly initial (to create midnight by passed time zone).

vdrasutis avatar Feb 20 '22 06:02 vdrasutis