You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
koreader/frontend
NiLuJe 32bf53cfdf
ReaderFooter: Don't duplicate a 12h clock time format option (#6973)
* ReaderFooter:
	* Honor the global twelve_hour_clock setting, instead of
	  duplicating a local one.
	  (Re #6969)

* os.date is a thin wrapper around strftime, so we might be able to get
away with some not-quite-standard extensions...

These are *definitely* supported on Linux, but are *NOT* the glibc
extension (that'd be e.g., %-I), so, hopefully, they're somewhat
portable...

They are also supported on BSD/macOS.
They are *not* supported by the MS UCRT. That means MinGW-w64, too.
This *appears* to be supported on current Bionic (it might even support
said glibc format altering extensions).

* And of course, Windows is terrible, so, make this terribly ugly to not
break it there...

* Turns out BSD also supports the dash trim format extension, so, leave
the trimming to the libc, and handle the special-casing in a way that
doesn't create stupid locals.

* Random unrelated cleanup ^^.

(https://gitter.im/koreader/koreader?at=5fd24be492aa1c4ef5d11f31)

* Update the testsuite

(Because the default used to be 24h clock).

Changed the default to 24h clock ;p.

* Explain why we don't try to fix it in Lua
3 years ago
..
apps ReaderFooter: Don't duplicate a 12h clock time format option (#6973) 3 years ago
device move unpackArchive to Device, use native version on android (#6959) 3 years ago
document JPG/PNG: MuPDF as default provider (#6931) 4 years ago
ui ReaderFooter: Don't duplicate a 12h clock time format option (#6973) 3 years ago
cache.lua [chore] Update MD5 calls with new sha2 library (#6411) 4 years ago
cacheitem.lua cleanup: expand tab to 4 spaces 10 years ago
configurable.lua decouple UI definitions from document modules 5 years ago
dbg.lua [Kobo] Support USBMS exports (#6552) 4 years ago
depgraph.lua Tame a few tests that relied on `pairs` being somewhat deterministic (#6371) 4 years ago
device.lua Remarkable port (#5828) 4 years ago
dispatcher.lua Paged documents: rework zoom options (#6885) 4 years ago
docsettings.lua History: show last read date instead of file size 4 years ago
dump.lua Order keys in settings.reader.lua (#6868) 4 years ago
fontlist.lua fontlist: Skip fonts with missing family_name (#6820) 4 years ago
gettext.lua [fix] Always initiate empty context table (#6874) 4 years ago
httpclient.lua build: enforce luacheck in travis build 8 years ago
logger.lua use android log categories 5 years ago
luadata.lua Use fsync() for more robust setting files saving 5 years ago
luasettings.lua Order keys in settings.reader.lua (#6868) 4 years ago
luxl.lua [fix] Don't break OPDS parsing on HR tags (#5949) 4 years ago
optmath.lua [[doc] Add documentation to optmath (#6258) 4 years ago
pluginloader.lua Set extra_plugin_paths to data_dir/plugins (#6849) 4 years ago
pluginshare.lua Move PluginShare.backgroundJobs into PluginShare module (#3128) 7 years ago
random.lua Faster blitting @ BB8/BBRGB32 when no processing is needed (#4847) 5 years ago
readcollection.lua Minor util & ffi/util cleanups (#6657) 4 years ago
readhistory.lua ReaderFooter: Don't duplicate a 12h clock time format option (#6973) 3 years ago
util.lua ReaderFooter: Don't duplicate a 12h clock time format option (#6973) 3 years ago
version.lua Fix point release and revision detection in Version:getShortVersion (#6693) 4 years ago