question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Regression in date of birth formatting

See original GitHub issue

Avoid duplicates

Technical details

  • Android version: 11
  • App version: 2.10.0-RC2 (pre-release version)

Describe the bug

PR https://github.com/corona-warn-app/cwa-app-android/pull/3987 has introduced a regression concerning inconsistent formatting regarding dates of birth.

For example, the date of birth in PersonDetailsFragment_cwa.png in release 2.10 should use the same order of month day year according to the English (United States) locale which is used in the date of sample on the same screen.

Instead of showing the date of birth as 1981/03/20, it should be shown as 03/20/1981.


PersonDetailsFragment_cwa from release/2.10.x

PersonDetailsFragment_cwa_2 10_dates


PersonDetailsFragment_cwa from screenshots 2.8 for comparison. In this version the date formats were fixed and did not use the device’s locale settings.

PersonDetailsFragment_cwa_2 8_dates

Steps to reproduce the issue

  1. Settings > System > Languages and input > Languages
    set to English (United States)
  2. Settings > System > Date & time
    select “Use locale default”/ disable “Use 24-hour format”
  3. Connect mobile device to Android Studio
  4. In Android Studio Build > Select BuildVariant deviceForTestersDebug
  5. run src/androidTest/java/de/rki/coronawarnapp on emulator
  6. View > Tools Windows > Device File Explorer
  7. Go to /data/data/de.rki.coronawarnapp.test/screenshots
  8. View screenshots and check the formatting of all dates of birth

Expected behavior

Dates of birth should be formatted according to the device’s locale setting, except in certificates where a field label indicates formatting using YYYY-MM-DD.


Internal Tracking ID: EXPOSUREAPP-9297

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
marcauberercommented, Sep 7, 2021

@MikeMcC399 new pr is open. Would be nice, if you could take a look at the screenshots and report back to me if the bug is solved. Thank you!

1reaction
dsarkarcommented, Sep 22, 2021

@MikeMcC399 I forwarded your comment into the new internal ticket.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Does it make sense to use a date variable in a regression?
I'm just wondering if it is possible to add a date variable as an explanatory variable in a linear regression model. If it's...
Read more >
python linear regression predict by date - Stack Overflow
I want to predict a value at a date in the future with simple linear regression, but I can't due to the date...
Read more >
How to create a date variable from a date stored as a string
Handling Dates in Stata · Data management: How to identify and remove duplicate observations · Time series in Stata®, part 1: Formatting and ......
Read more >
Time series in Stata®, part 1: Formatting and managing dates
Discover how to convert string dates to numeric dates, how to format dates, and how to prepare dates for time series analysis in...
Read more >
Using dates in Stata | Stata Learning Modules - OARC Stats
This module will show how to use date variables, date functions, and date display formats in Stata. Converting dates from raw data using...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found