From c05e7f76709ad5f74fa001709341cdae568e58df Mon Sep 17 00:00:00 2001 From: wmayer Date: Mon, 28 Aug 2023 08:25:52 +0200 Subject: [PATCH] Gui: use '%Y-%m-%d %H:%M:%S' as format string for date For more details see: https://forum.freecad.org/viewtopic.php?p=702475#p702475 --- src/Gui/View3DPy.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Gui/View3DPy.cpp b/src/Gui/View3DPy.cpp index 8f29d71e1f..abff2cfac7 100644 --- a/src/Gui/View3DPy.cpp +++ b/src/Gui/View3DPy.cpp @@ -1629,7 +1629,7 @@ void View3DInventorPy::eventCallback(void * ud, SoEventCallback * n) // Type dict.setItem("Type", Py::String(std::string(e->getTypeId().getName().getString()))); // Time - dict.setItem("Time", Py::String(std::string(e->getTime().formatDate().getString()))); + dict.setItem("Time", Py::String(std::string(e->getTime().formatDate("%Y-%m-%d %H:%M:%S").getString()))); SbVec2s p = n->getEvent()->getPosition(); Py::Tuple pos(2); pos.setItem(0, Py::Int(p[0]));