raspiblitz-web icon indicating copy to clipboard operation
raspiblitz-web copied to clipboard

Current Date formatting is confusing

Open cstenglein opened this issue 3 years ago • 7 comments

  • Either adjust date format to local date or make it relative (e.g. 2 hours ago)

cstenglein avatar Nov 22 '21 13:11 cstenglein

You talk about a specific date in the app or all dates?

escapedcat avatar Nov 23 '21 02:11 escapedcat

Was mostly about the transaction view, since it could be confusing that it's MM/DD/YYYY

So relative could be an option there or maybe change the format depending on the locale

cstenglein avatar Nov 24 '21 18:11 cstenglein

MM/DD/YYYY -> worst... format... ever... :D

escapedcat avatar Nov 25 '21 02:11 escapedcat

I can understand clearly dates in:

  • DD/MM/YYYY
  • YYYY-MM-DD

and time in:

  • hh-mm-ss

If less than one day, put relative time, X hours/mins/seconds ago. If more than one day, then date is better I think.

The MM/DD/YYYY is unusable for non muricans.

nyxnor avatar Nov 26 '21 15:11 nyxnor

image

escapedcat avatar Nov 28 '21 11:11 escapedcat

The current code is using toLocaleString. According to mdn this will display a format depdending on the individual timezone. Isn't that sufficient already?

escapedcat avatar Jan 23 '22 07:01 escapedcat

Could be, not sure yet.

We could move that back to low prio and wait until first feedback comes in for the 2.0.0 version if you like.

cstenglein avatar Jan 25 '22 17:01 cstenglein