Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Datepicker Issue - Calendar is wrong & picks the wrong day #8185

Closed
Nicosoft opened this issue Nov 2, 2017 · 4 comments · Fixed by #10068
Closed

Datepicker Issue - Calendar is wrong & picks the wrong day #8185

Nicosoft opened this issue Nov 2, 2017 · 4 comments · Fixed by #10068
Assignees
Labels
P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent

Comments

@Nicosoft
Copy link

Nicosoft commented Nov 2, 2017

Bug: Datepicker component

3 issues, see screenshots

  • ISSUES on Mac OS Sierra version 10.12.6, with Chrome (Version 61.0.3163.100 (Official Build) (64-bit))
  • Same system with Safari: NO ISSUE
  • My colleague on Window 10 with Chrome (Version 62.0.3202.75 (Official Build) (64-bit)) : NO ISSUE

What is the expected behavior?

  1. The calendar should display NOV when I select month November 2017
  2. The calendar should display for example November 2017 the list of days from 1 to 30.
  3. When I select the date 11/5/2017, the text field should display 11/5/2017.

Screenshot on Windows 10 with Chrome: NO ISSUE
beeb88da-6abb-4b84-b379-ee962cb0720d

What is the current behavior?

  1. The calendar displays OCT when I select month November 2017
  2. The calendar displays for example November 2017 the list of days are from 31 to 29
  3. When I select the date 11/1/2017, the text field should display 11/2/2017.

Screenshot showing the issues #1 and #2:

screen shot 2017-11-02 at 3 20 58 pm

Screenshot showing the issue #3:
screen shot 2017-11-02 at 3 21 26 pm

What are the steps to reproduce?

Go to: https://material2-dev.firebaseapp.com/datepicker

What is the use-case or motivation for changing an existing behavior?

Does it come from my computer or Datepicker? How to fix it, because this is very disturbing for a user.

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

no comment

Is there anything else we should know?

My timezone is "Australia/Sydney".

Thanks.

@fxck
Copy link
Contributor

fxck commented Nov 2, 2017

#4358 and all the other related issues

@julianobrasil
Copy link
Contributor

julianobrasil commented Nov 2, 2017

There's a PR for this: #7858

cc @mmalerba (apparently it also affects Chrome in Mac OS)

@mmalerba
Copy link
Contributor

mmalerba commented Nov 2, 2017

Hmm my PR fixes it by explicitly checking for IE. I really don't want to get into manually checking for a bunch of browser + OS combinations. It would be nice if there was some way to create a more generic test for this...

In the mean time @Nicosoft I believe this only happens with the NativeDateAdapter, you could try using the MomentDateAdapter instead

@mmalerba mmalerba added the P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent label Nov 21, 2017
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants