Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

reset locale format when locale changes #4425

Closed
wants to merge 1 commit into from

Conversation

tobigun
Copy link
Contributor

@tobigun tobigun commented Sep 16, 2015

When angular-dynamic-locale is used, the locale can change over time.
The datetime, month and day formats should be reset whenever the locale changes. Otherwise the parser will fail parse dates after locale switches.

@wesleycho
Copy link
Contributor

This LGTM - it sounds like a sensible and performant way to update the parsers.

This needs a test though.

@wesleycho wesleycho closed this in d9a521a Sep 17, 2015
jasonaden pushed a commit to deskfed/bootstrap that referenced this pull request Jan 8, 2016
- Reset parsers when $locale.id changes to take into account changed
  localization settings

Closes angular-ui#4286
Closes angular-ui#4425
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants