Closed MikeMcC399 closed 3 years ago
@MikeMcC399
Thanks for checkin on this. I've made an internal report to the dev team.
Corona-Warn-App Open Source Team
Here the string is formatted:
The DateTime.toShortDateTimeFormat
extension function is defined as:
However, it does not always return a string in the format that it is annotated as, because DateTimeFormat.shortDateTime()
is documented as:
Creates a format that outputs a short datetime format. The format will change as you change the locale of the formatter. […]
Whereas the extension function DateTime.toShortDayFormat()
uses a "dd.MM.yy"
as a fixed pattern.
@fynngodau Thanks. I will forward this to the internal ticket.
PR https://github.com/corona-warn-app/cwa-app-android/pull/3987 planned for CWA 2.9 harmonizes date display in the app and it changes the date formatting for Certificate Validation.
With locale set to English (United States)
The input screen shows Date and time for instance "Aug 27, 2021 8:23 PM"
The result screen shows for instance "Entering Germany on 8/27/21 8:23 PM, validated on 8/27/21 7:29 PM"
Even though the format on the input screen and the result screen are different, they should not cause any confusion. Importantly, the date format on the result screen is consistent between the two time stamps on that screen.
If PR https://github.com/corona-warn-app/cwa-app-android/pull/3987 is merged in its current state, I would suggest that this issue (https://github.com/corona-warn-app/cwa-app-android/issues/3830 Internal Tracking-ID: EXPOSUREAPP-8750) can be given the Fix 2.9 label as well as issue https://github.com/corona-warn-app/cwa-app-android/issues/3963.
PR https://github.com/corona-warn-app/cwa-app-android/pull/3987 is merged into release/2.10.x
This issue (https://github.com/corona-warn-app/cwa-app-android/issues/3830 Internal Tracking-ID: EXPOSUREAPP-8750) is solved by PR #3957 so this issue (#3830) can be given the Fix 2.10 label.
@dsarkar Would you please add the fix 2.10 label to this issue?
@dsarkar This issue is fixed in the CWA 2.10.1 Android version which was released today. You may like to add the Fix 2.10 label.
Closing as fixed.
@MikeMcC399 Thanks! Forwarded to internal ticket.
Technical details
2.6.1-RC12.9.0Describe the bug
Formatting of dates in the Certificate Validation function is inconsistent.
In the example below date / times are displayed in two different formats:
with different separators (. and /), reversed day and month, and short and long forms of the year.
Steps to reproduce the issue
Compare date formats on input screen and result screen.
Expected behavior
Dates in the Certificate Validation function should be displayed in a consistent way.
Possible Fix
Use the locale's date formatting to achieve consistency.
Internal Tracking-ID: EXPOSUREAPP-8750