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 12/24h format on event list due date-time by using an 5.1.1 Andro… #510

Merged
merged 2 commits into from
Dec 1, 2017

Conversation

lemonboston
Copy link
Contributor

@lemonboston lemonboston commented Nov 27, 2017

…id version of the DateUtils method. #396


Fixed it as discussed on chat.
I just added the old version of the method as a private method of DateFormatter as I assume it's best to keep every date-time formatting code there until Time is removed form the project. We can refactor after that.

Btw, found the bug on the official tracker: https://issuetracker.google.com/issues/37127319

@dmfs
Copy link
Owner

dmfs commented Nov 27, 2017

How about using the workaround only if we have to. I.e. detect whether the device 24h/12h setting is different from the current locale 24h/12h setting and use the original method if it's the same?

It's probably best if we use workarounds only to the extend we have to and stick to the original methods otherwise.

@lemonboston
Copy link
Contributor Author

I've updated it as suggested, so only use old version when locale has AM/PM by default. Ready for check again.

Copy link
Owner

@dmfs dmfs left a comment

Choose a reason for hiding this comment

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

Looks good.

@dmfs dmfs merged commit cf3e6d7 into master Dec 1, 2017
@dmfs dmfs deleted the bugs/396-1224h branch December 1, 2017 22:09
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.

2 participants