Skip to content

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

const {format, locale} = opts;

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