--- /usr/lib/python3/dist-packages/spyder/plugins/editor/widgets/editor.py 2024-06-20 07:16:54.096395325 +0200 +++ /usr/lib/python3/dist-packages/spyder/plugins/editor/widgets/editor.py 2024-06-20 14:39:07.693577124 +0200 @@ -2370,15 +2370,16 @@ else: # Else, testing if it has been modified elsewhere: lastm = QFileInfo(finfo.filename).lastModified() - if to_text_string(lastm.toString()) \ - != to_text_string(finfo.lastmodified.toString()): + dt = finfo.lastmodified.msecsTo(lastm) + if dt > 1000: if finfo.editor.document().isModified(): self.msgbox = QMessageBox( QMessageBox.Question, self.title, - _("%s has been modified outside Spyder." + _("It looks like %s has been modified " + "outside Spyder. The working copy is from %i milliseconds ago." "
Do you want to reload it and lose all " - "your changes?") % name, + "your changes?") % (name, dt), QMessageBox.Yes | QMessageBox.No, self) answer = self.msgbox.exec_()