|
|
#1 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,528
Karma: 8065948
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Attn plugin developers: new Qt bug regarding dates
Kovid found a new bug in how Qt handles dates. Formerly
Code:
QDateTime(some_python_date) See https://github.com/kovidgoyal/calibr...b4d3ec86b2a711 for how examples of how he fixed it. Examples: Code:
self.setDateTime(now())
is changed to:
self.setDateTime(qt_from_dt(now()))
Code:
return None if is_date_undefined(val) else QDateTime(as_local_time(val))
is changed to
return None if is_date_undefined(val) else qt_from_dt(val)
|
|
|
|
|
|
#2 |
|
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,379
Karma: 79699999
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Is this also present in the Calibre 7 beta?
|
|
|
|
| Advert | |
|
|
|
|
#3 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,528
Karma: 8065948
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
|
|
|
|
|
|
#4 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,216
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
|
Thanks for the heads-up. I've put a test version for my plugin.
|
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Attn plugin devs: porting to python 3 | kovidgoyal | Plugins | 129 | 06-16-2020 02:31 AM |
| Plugin Developers, a request | Rellwood | Plugins | 6 | 03-31-2020 06:28 PM |
| Attn plugin developers: calibre moving to Qt 5 | kovidgoyal | Plugins | 157 | 01-02-2015 12:22 AM |
| calibre-plugins.com: A resource for plugin developers | GRiker | Development | 2 | 11-19-2014 04:52 PM |
| Attn vvv - Minor bug in BD | HarryT | Sony Reader | 33 | 07-11-2007 02:37 AM |