mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
eeed388a5b
commit
6eff053a6b
@ -172,7 +172,7 @@ def make_undoable(spinbox):
|
||||
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…
x
Reference in New Issue
Block a user