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:
|
else:
|
||||||
self.undo_stack.clear()
|
self.undo_stack.clear()
|
||||||
if hasattr(self, 'setDateTime'):
|
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)
|
val = parse_only_date(val.isoformat(), assume_utc=False)
|
||||||
self.setDateTime(val)
|
self.setDateTime(val)
|
||||||
elif hasattr(self, 'setValue'):
|
elif hasattr(self, 'setValue'):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user