FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix: Date test in another Locale by sakebook · Pull Request #327 · firebase/firebase-admin-java · GitHub

fix: Date test in another Locale - #327

Merged
hiranya911 merged 3 commits into
firebase:masterfrom
sakebook:sakebook/fix_date_test
Nov 6, 2019
Merged

fix: Date test in another Locale#327
hiranya911 merged 3 commits into
firebase:masterfrom
sakebook:sakebook/fix_date_test

Conversation

sakebook commented Nov 6, 2019
edited by hiranya911
Loading

Copy link
Copy Markdown
Contributor

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.

hiranya911 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

I fixed it. 3e8ec14

hiranya911 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM 👍

hiranya911 assigned hiranya911 and unassigned sakebook Nov 6, 2019
hiranya911 merged commit 76f0f95 into firebase:master Nov 6, 2019
hiranya911 changed the title Fix Date test in another Locale fix: Date test in another Locale Nov 6, 2019
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

2 participants


Back | FazBrowse Home | New Git URL