[go: nahoru, domu]

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

fix: Date test in another Locale #327

Merged
merged 3 commits into from
Nov 6, 2019

Conversation

sakebook
Copy link
Contributor
@sakebook sakebook commented Nov 6, 2019

Discussion

No issue.

Current Date test is depend on Locale(GMT).

I ran the test on my local machine and it was not successful.
This is because the Japanese locale (JMT) is used.

I defined use Locale.US.

Testing

Fixed test

API Changes

None

RELEASE NOTE: Fixed a bug in date string parsing during error handling.

Copy link
Contributor
@hiranya911 hiranya911 left a comment

Choose a reason for hiding this comment

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

Thanks @sakebook. Just one change needed, and then we can merge.

new SimpleDateFormat(PATTERN_RFC1123),
new SimpleDateFormat(PATTERN_RFC1036),
new SimpleDateFormat(PATTERN_ASCTIME)
new SimpleDateFormat(PATTERN_RFC1123, Locale.UK),
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I fixed it. 3e8ec14

Copy link
Contributor
@hiranya911 hiranya911 left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@hiranya911 hiranya911 assigned hiranya911 and unassigned sakebook Nov 6, 2019
@hiranya911 hiranya911 merged commit 76f0f95 into firebase:master Nov 6, 2019
@hiranya911 hiranya911 changed the title Fix Date test in another Locale fix: Date test in another Locale Nov 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants