src/eric7/Cooperation/ChatWidget.py

branch
eric7
changeset 10853
1f651b204780
parent 10439
21c28b0f9e41
child 10859
399d19fc7eb5
diff -r 65ee5eba7b10 -r 1f651b204780 src/eric7/Cooperation/ChatWidget.py
--- a/src/eric7/Cooperation/ChatWidget.py	Wed Jul 17 16:48:46 2024 +0200
+++ b/src/eric7/Cooperation/ChatWidget.py	Fri Jul 19 11:54:29 2024 +0200
@@ -171,7 +171,7 @@
         color = self.chatEdit.textColor()
         self.chatEdit.setTextColor(Qt.GlobalColor.gray)
         self.chatEdit.append(
-            QDateTime.currentDateTime().toString(Qt.DateFormat.SystemLocaleLongDate)
+            QDateTime.currentDateTime().toString("yyyy-MM-dd hh:mm:ss")
             + ":"
         )
         self.chatEdit.append(self.tr("* {0} has joined.\n").format(nick))
@@ -213,7 +213,7 @@
             color = self.chatEdit.textColor()
             self.chatEdit.setTextColor(Qt.GlobalColor.gray)
             self.chatEdit.append(
-                QDateTime.currentDateTime().toString(Qt.DateFormat.SystemLocaleLongDate)
+                QDateTime.currentDateTime().toString("yyyy-MM-dd hh:mm:ss")
                 + ":"
             )
             self.chatEdit.append(self.tr("* {0} has left.\n").format(nick))
@@ -242,7 +242,7 @@
             return
 
         self.chatEdit.append(
-            QDateTime.currentDateTime().toString(Qt.DateFormat.SystemLocaleLongDate)
+            QDateTime.currentDateTime().toString("yyyy-MM-dd hh:mm:ss")
             + " <"
             + from_
             + ">:"
@@ -377,7 +377,7 @@
         color = self.chatEdit.textColor()
         self.chatEdit.setTextColor(Qt.GlobalColor.red)
         self.chatEdit.append(
-            QDateTime.currentDateTime().toString(Qt.DateFormat.SystemLocaleLongDate)
+            QDateTime.currentDateTime().toString("yyyy-MM-dd hh:mm:ss")
             + ":"
         )
         self.chatEdit.append(message + "\n")
@@ -680,7 +680,7 @@
         color = self.chatEdit.textColor()
         self.chatEdit.setTextColor(Qt.GlobalColor.darkYellow)
         self.chatEdit.append(
-            QDateTime.currentDateTime().toString(Qt.DateFormat.SystemLocaleLongDate)
+            QDateTime.currentDateTime().toString("yyyy-MM-dd hh:mm:ss")
             + ":"
         )
         self.chatEdit.append(
@@ -698,7 +698,7 @@
         color = self.chatEdit.textColor()
         self.chatEdit.setTextColor(Qt.GlobalColor.darkYellow)
         self.chatEdit.append(
-            QDateTime.currentDateTime().toString(Qt.DateFormat.SystemLocaleLongDate)
+            QDateTime.currentDateTime().toString("yyyy-MM-dd hh:mm:ss")
             + ":"
         )
         self.chatEdit.append(
@@ -716,7 +716,7 @@
         color = self.chatEdit.textColor()
         self.chatEdit.setTextColor(Qt.GlobalColor.darkYellow)
         self.chatEdit.append(
-            QDateTime.currentDateTime().toString(Qt.DateFormat.SystemLocaleLongDate)
+            QDateTime.currentDateTime().toString("yyyy-MM-dd hh:mm:ss")
             + ":"
         )
         self.chatEdit.append(

eric ide

mercurial