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
This commit is contained in:
wmayer
2023-08-28 08:25:52 +02:00
parent 325ae8210a
commit c05e7f7670

View File

@@ -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]));