Feature request: 24h clock format in reader

Bug #1907907 reported by TMF
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
calibre
Fix Released
Undecided
Unassigned

Bug Description

The ebook reader allows the time to be displayed in the header or footer. Only the US-style 12-hour-clock is supported (e.g. "2:50 pm").

I suggest adding a "Clock (24h)" option that outputs the time in the 24-hour-clock style (e.g. "14:50"). This is the preferred style outside English-speaking countries. See https://en.wikipedia.org/wiki/24-hour_clock.

Thanks!

Revision history for this message
Kovid Goyal (kovid) wrote : Re: calibre bug 1907907

It's not any particular format, it is supposed to use the locale
settings from your system. Is that not the case on your system?

Revision history for this message
TMF (t-m-fischer) wrote :

No, my locale is set to use the 24 h clock. I just checked in the Windows 10 locale settings.

Revision history for this message
Kovid Goyal (kovid) wrote :

Well then its a bug in Qt WebEgine not using your system locale. It
might be possible to workaround it by using the system format directly.
What does running the follwoing in a command prompt return:

calibre-debug -c "from PyQt5.Qt import *; app = QApplication([]); print(QLocale.system().timeFormat(QLocale.ShortFormat))"

Revision history for this message
Kovid Goyal (kovid) wrote : Fixed in master

Fixed in branch master. The fix will be in the next release. calibre is usually released every alternate Friday.

 status fixreleased

Changed in calibre:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.