cwa-app-android icon indicating copy to clipboard operation
cwa-app-android copied to clipboard

Strange time format on ID history screen

Open Ein-Tim opened this issue 3 years ago • 5 comments

Avoid duplicates

  • [X] Bug is not mentioned in the FAQ
  • [X] Bug is specific for Android only, for general issues / questions that apply to iOS and Android please raise them in the documentation repository
  • [X] Bug is not already reported in another issue

Technical details

  • Device name: Huawei P Smart 2019
  • Android version: 10
  • App version: 2.23.2

Region specific settings

Describe the bug

The dates on the "ID-Historie" (ID history) screen are really formatted in a strange way, which is normal not used to format times in Germany.

Steps to reproduce the issue

  1. Open CWA
  2. Click on the 3 dots in the top right corner
  3. Click on "App-Informationen"
  4. Click on "Fehlerberichte"
  5. Scroll down and tap on "ID-Historie"
  6. See the strangely formatted dates

Expected behaviour

Formatting of the dates as in the contact journal:


Internal Tracking ID: EXPOSUREAPP-13442

Ein-Tim avatar Jun 22 '22 20:06 Ein-Tim

I'm really an Android noob, so let me should this be something that is user definable.

Ein-Tim avatar Jun 22 '22 20:06 Ein-Tim

The formatting at the app UI level is similar to the date/timestamp in the error report log file itself, e.g. 2022-05-20T04:05:22.657Z I/DebugLogger: Trigger file created.

so perhaps the dots in the date in the UI should be converted to dashes to conform to the log.

Note the the time in the error log is based on UTC (see the "Z" at the end) which is generally not the timezone used in the UI (UTC+1 for CEST or UTC+2 for CET).

MikeMcC399 avatar Jun 23 '22 07:06 MikeMcC399

@Ein-Tim Thank you for reporting this issue. We created an internal ticket for it. Internal Tracking ID: EXPOSUREAPP-13442

@MikeMcC399 Thank you for your input on this topic!

thorbenkuro avatar Jun 23 '22 09:06 thorbenkuro

@Ein-Tim

I'm really an Android noob, so let me should this be something that is user definable.

The format is fixed and it is independent of any user settings:

https://github.com/corona-warn-app/cwa-app-android/blob/82acaf03775bebf24e18d6adac3ad4a43d0914d1/Corona-Warn-App/src/main/java/de/rki/coronawarnapp/bugreporting/debuglog/ui/upload/history/HistoryItemAdapter.kt#L64

MikeMcC399 avatar Jun 23 '22 09:06 MikeMcC399

Thank you for the clarification @MikeMcC399!

Ein-Tim avatar Jun 23 '22 09:06 Ein-Tim

  • PR https://github.com/corona-warn-app/cwa-app-android/pull/5480 changes the format to https://github.com/corona-warn-app/cwa-app-android/blob/2c614650537abfbc3adc3313f61c355698a7a42c/Corona-Warn-App/src/main/java/de/rki/coronawarnapp/bugreporting/debuglog/ui/upload/history/HistoryItemAdapter.kt#L64

In other words the day and year exchange their previous positions.

MikeMcC399 avatar Aug 27 '22 16:08 MikeMcC399

@MikeMcC399 Thanks for the update!

@mtwalli Feel free to apply the Fix 2.27 label to this issue.

Ein-Tim avatar Aug 27 '22 21:08 Ein-Tim

@MikeMcC399 @Ein-Tim Thanks for the contribution! Should be fixed in the mentioned PR in release 2.27

sapcoder123 avatar Aug 30 '22 14:08 sapcoder123

@Ein-Tim

I checked in the released 2.27.2 and this issue is fixed.

MikeMcC399 avatar Sep 30 '22 09:09 MikeMcC399

It's probably too late to fix this, but I am now seeing old timestamps in the ID History

20.01.1970 - 03:26:06

with CWA Android 3.1.1 on Android 11 Locale set to English (United States) or Deutsch (Deutschland)

The year 1970 doesn't make sense.

A new error report sent today had the right timestamp

10.03.2023 - 14:42:25

MikeMcC399 avatar Mar 10 '23 13:03 MikeMcC399