mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 18:13:04 +02:00
...
This commit is contained in:
parent
eeed388a5b
commit
6eff053a6b
1 changed files with 1 additions and 1 deletions
|
|
@ -172,7 +172,7 @@ def set_spinbox_value(self, val):
|
|||
else:
|
||||
self.undo_stack.clear()
|
||||
if hasattr(self, 'setDateTime'):
|
||||
if isinstance(val, date) and not val == UNDEFINED_DATE:
|
||||
if isinstance(val, date) and not is_date_undefined(val):
|
||||
val = parse_only_date(val.isoformat(), assume_utc=False)
|
||||
self.setDateTime(val)
|
||||
elif hasattr(self, 'setValue'):
|
||||
|
|
|
|||
Loading…
Reference in a new issue