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

ngx-material-timepicker-285 24hr format, invalid dateTime #293

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tobszarny
Copy link

  • made TimeAdapter.formatTime respect given locales

* made TimeAdapter.formatTime respect given locales
@Agranom
Copy link
Owner

Agranom commented Feb 29, 2020

Pls fix tests, they fails on CI


return TimeAdapter.parseTime(time, opts).setLocale(TimeAdapter.DEFAULT_LOCALE)
return TimeAdapter.parseTime(time, opts).setLocale(locale ? locale : TimeAdapter.DEFAULT_LOCALE)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can simplify to locale || TimeAdapter.DEFAULT_LOCALE

@Agranom
Copy link
Owner

Agranom commented Feb 29, 2020

Sorry, but I didn't get which bug this PR is supposed to fix?

@tobszarny
Copy link
Author

@tobszarny
Copy link
Author

Btw, have any CI where I can check which tests are failing?

@tobszarny
Copy link
Author

Never mind. Found Travis link on your home page. Will see into that. Curiously enough the tests are passing on my machine. So there still seems to be some platform dependence when it comes to locales.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants