From 7bf5361d58810788f8f59fe7758c445d8dced0ee Mon Sep 17 00:00:00 2001 From: Charles Haley <> Date: Wed, 29 Aug 2012 11:59:41 +0200 Subject: [PATCH] Send date formats to device --- src/calibre/devices/smart_device_app/driver.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/calibre/devices/smart_device_app/driver.py b/src/calibre/devices/smart_device_app/driver.py index ae765b4fd4..361fbb98a1 100644 --- a/src/calibre/devices/smart_device_app/driver.py +++ b/src/calibre/devices/smart_device_app/driver.py @@ -651,11 +651,14 @@ class SMART_DEVICE_APP(DeviceConfig, DevicePlugin): challenge = '' hash_digest = '' opcode, result = self._call_client('GET_INITIALIZATION_INFO', - {'serverProtocolVersion': self.PROTOCOL_VERSION, - 'validExtensions': self.ALL_FORMATS, - 'passwordChallenge': challenge, - 'currentLibraryName': self.current_library_name, - 'currentLibraryUUID': library_uuid}) + {'serverProtocolVersion': self.PROTOCOL_VERSION, + 'validExtensions': self.ALL_FORMATS, + 'passwordChallenge': challenge, + 'currentLibraryName': self.current_library_name, + 'currentLibraryUUID': library_uuid, + 'pubdateFormat': tweaks['gui_pubdate_display_format'], + 'timestampFormat': tweaks['gui_timestamp_display_format'], + 'lastModifiedFormat': tweaks['gui_last_modified_display_format']}) if opcode != 'OK': # Something wrong with the return. Close the socket # and continue.