mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
History: update last book access time (#10156)
This commit is contained in:
@@ -295,6 +295,9 @@ end
|
||||
---- @treturn string date+time
|
||||
function datetime.secondsToDateTime(seconds, twelve_hour_clock, use_locale)
|
||||
seconds = seconds or os.time()
|
||||
if twelve_hour_clock == nil then
|
||||
twelve_hour_clock = G_reader_settings:isTrue("twelve_hour_clock")
|
||||
end
|
||||
local BD = require("ui/bidi")
|
||||
local date_string = datetime.secondsToDate(seconds, use_locale)
|
||||
local time_string = datetime.secondsToHour(seconds, twelve_hour_clock, not use_locale)
|
||||
|
||||
Reference in New Issue
Block a user