Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader

Notices

Reply
 
Thread Tools Search this Thread
Old Today, 04:24 PM   #1
Dal Bhat
दाल भात
Dal Bhat ought to be getting tired of karma fortunes by now.Dal Bhat ought to be getting tired of karma fortunes by now.Dal Bhat ought to be getting tired of karma fortunes by now.Dal Bhat ought to be getting tired of karma fortunes by now.Dal Bhat ought to be getting tired of karma fortunes by now.Dal Bhat ought to be getting tired of karma fortunes by now.Dal Bhat ought to be getting tired of karma fortunes by now.Dal Bhat ought to be getting tired of karma fortunes by now.Dal Bhat ought to be getting tired of karma fortunes by now.Dal Bhat ought to be getting tired of karma fortunes by now.Dal Bhat ought to be getting tired of karma fortunes by now.
 
Posts: 185
Karma: 1656764
Join Date: Apr 2024
Device: Kindle 11th Gen; Clara BW
How does Kobo Utilities set the time on a device?

Seems to work. How?
Dal Bhat is offline   Reply With Quote
Old Today, 05:37 PM   #2
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
Posts: 14,189
Karma: 84699244
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
Through the same means as Kobo desktop used to. It creates a file in the
.Kobo directory called epoch.conf that contains a Linux epoch time, number of seconds from January 1, 1970 00:00:00 UTC.

The code is found in the Kobo Utilities source file action.py
[code]def set_time_on_device(
device: KoboDevice,
gui: ui.Main,
dispatcher: Dispatcher,
load_resources: LoadResources,
):
del dispatcher, load_resources
debug("start")
now = calendar.timegm(time.gmtime())
debug("time=%s" % now)
epoch_conf_path = os.path.join(
device.path, KOBO_ROOT_DIR_NAME, KOBO_EPOCH_CONF_NAME
)
with open(epoch_conf_path, "w") as epoch_conf:
epoch_conf.write("%s" % now)
gui.status_bar.show_message(
_("Kobo Utilities") + " - " + _("Time file created on device."), 3000
)
debug("end")
[code]

Last edited by PeterT; Today at 06:55 PM.
PeterT is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Kobo] Kobo Utilities strange numbers in store position palaran Kobo Reader 6 03-28-2025 03:53 AM
Kobo Utilities Question normaprice Kobo Reader 3 10-15-2021 06:53 AM
Aura H2O Kobo Utilities reporting 2 books not on device Boneist Kobo Reader 11 10-29-2017 07:33 PM
Help with Kobo Utilities needed chiara_sc Kobo Reader 3 09-02-2016 08:05 PM
device deconnection each time I touch .kobo folder fxp33 Kobo Developer's Corner 6 08-25-2013 04:17 PM


All times are GMT -4. The time now is 07:02 PM.


MobileRead.com is a privately owned, operated and funded community.