Fix #2028019 [Encountered an anomaly during bulk update of metadata](https://bugs.launchpad.net/calibre/+bug/2028019)

This commit is contained in:
Kovid Goyal 2023-07-19 11:20:18 +05:30
parent c42fb69d66
commit edd108eada
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -1221,9 +1221,9 @@ class MetadataBulkDialog(QDialog, Ui_MetadataBulkDialog):
languages = self.languages.lang_codes
pubdate = adddate = None
if self.apply_pubdate.isChecked():
pubdate = qt_to_dt(self.pubdate.dateTime())
pubdate = qt_to_dt(self.pubdate.dateTime(), as_utc=False)
if self.apply_adddate.isChecked():
adddate = qt_to_dt(self.adddate.dateTime())
adddate = qt_to_dt(self.adddate.dateTime(), as_utc=False)
cover_action = None
if self.cover_remove.isChecked():