mirror of https://github.com/koreader/koreader
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 Luareviewable/pr6985/r1
parent
3142f98e20
commit
32bf53cfdf
@ -1,19 +0,0 @@
|
||||
./apps/reader/modules/readerfooter.lua: UIManager.update_regions_func = function()
|
||||
./apps/reader/modules/readerhighlight.lua: UIManager.update_regions_func = function()
|
||||
./ui/widget/button.lua: UIManager.update_regions_func = function()
|
||||
./ui/widget/iconbutton.lua: UIManager.update_regions_func = function()
|
||||
./ui/widget/dictquicklookup.lua: UIManager.update_regions_func = function()
|
||||
./ui/widget/scrolltextwidget.lua: UIManager.update_regions_func = function()
|
||||
./ui/widget/touchmenu.lua: UIManager.update_regions_func = function()
|
||||
./ui/widget/touchmenu.lua: UIManager.update_regions_func = function()
|
||||
./ui/widget/virtualkeyboard.lua: UIManager.update_regions_func = function()
|
||||
./ui/widget/virtualkeyboard.lua: UIManager.update_regions_func = function()
|
||||
./ui/widget/virtualkeyboard.lua: UIManager.update_regions_func = nil
|
||||
./ui/widget/toggleswitch.lua: UIManager.update_regions_func = function()
|
||||
./ui/widget/configdialog.lua: UIManager.update_regions_func = function()
|
||||
./ui/widget/configdialog.lua: UIManager.update_regions_func = function()
|
||||
./ui/uimanager.lua: update_regions_func = nil,
|
||||
./ui/uimanager.lua: if self.update_regions_func then
|
||||
./ui/uimanager.lua: local update_regions = self.update_regions_func()
|
||||
./ui/uimanager.lua: for _, update_region in ipairs(update_regions) do
|
||||
./ui/uimanager.lua: self.update_regions_func = nil
|
Loading…
Reference in New Issue