Comment 3 for bug 2031341

Revision history for this message
Ross King (rsking) wrote :

I've come up with the simplest repo that I could

1. Create a new library called Test
2. start calibre server with the command
  `calibre-server --enable-local-write`
3. Download a book,
  `curl https://standardebooks.org/ebooks/honore-de-balzac/shorts-from-scenes-from-private-life/clara-bell_ellen-marriage/downloads/honore-de-balzac_shorts-from-scenes-from-private-life_clara-bell_ellen-marriage.epub -O`
4. Add the book to the `Test` library
  `calibredb add --with-library http://127.0.0.1:8080/#Test .\honore-de-balzac_shorts-from-scenes-from-private-life_clara-bell_ellen-marriage.epub`
5. try to retrieve information about the added book, including the last modified field
  `calibredb list --with-library http://127.0.0.1:8080/#Test --fields=last_modified --search=id:"=1"`

This results in the failure

Traceback (most recent call last):
  File "runpy.py", line 196, in _run_module_as_main
  File "runpy.py", line 86, in _run_code
  File "site.py", line 83, in <module>
  File "site.py", line 78, in main
  File "site.py", line 50, in run_entry_point
  File "calibre\db\cli\main.py", line 252, in main
  File "calibre\db\cli\main.py", line 40, in run_cmd
  File "calibre\db\cli\cmd_list.py", line 362, in main
  File "calibre\db\cli\cmd_list.py", line 175, in do_list
  File "calibre\db\cli\main.py", line 183, in run
  File "calibre\db\cli\main.py", line 206, in remote_run
  File "calibre\utils\serialize.py", line 107, in msgpack_loads
  File "msgpack/_unpacker.pyx", line 194, in msgpack._cmsgpack.unpackb
  File "calibre\utils\serialize.py", line 101, in msgpack_decoder
  File "calibre\utils\serialize.py", line 83, in decode_datetime
  File "calibre\utils\iso8601.py", line 26, in parse_iso8601
TypeError: timezone() argument 1 must be datetime.timedelta, not int