-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
Time is showing 24:00 instead of 00:00 #9538
Comments
flamber wrote: I can reproduce this on H2 Sample Data on 0.31.2 - I’ve never noticed the “24” before now. |
We're seeing the same bug running the same Metabase version against a Postgres database. The columns are timezone-aware and stored in UTC time in the database; the timestamps are shown as 2019-03-28 24:11 in Metabase. Let me know if I can provide additional information and help triaging in any way. |
Hi, I have debugged this to the use of "24 hour time from 1 to 24" in moment.js https://momentjs.com/docs/ of the format k:mm rather than using the format H:mm (or as I prefer HH:mm) to get 0 to 24. If you grep through the source k:mm occurs in date.js and column.js. The temporary hack I have done to fix this is to run this SQL on the metabase database UPDATE metabase_field SET settings = REPLACE(settings, '"k:mm', '"HH:mm') WHERE settings LIKE '%"k:mm%'; |
@snblitz did you verify if only 24 is displayed instead of 00 or actually all hours are shifted +1? |
@spinus This is just a visual formatting issue, not a timezone issue, so nothing is shifted. The tricky part of the issue is to fix all existing defined formatting ( |
Bugs
timedate shows 24:xx instead of 00:xx.
Repeatable steps to reproduce the issue*
Set the date in a table to display in yyyy-m-d h:m:s 24 hour format.
Look at a datetime with the time in 00:xx range. See 24:xx instead of 00:xx
⬇️ Please click the 👍 reaction instead of leaving a
+1
orupdate?
commentThe text was updated successfully, but these errors were encountered: