Device Information/Status History is showing unformatted QDateTime objects
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
HPLIP |
New
|
Undecided
|
Unassigned |
Bug Description
Under Python 3 with PyQt5, the string representation of PyQt5.QtCore.
PyQt5.QtCore.
There are two possible fixes for this, I'm attaching patches for both approaches. They are compatible with each other and could be applied together, but either patch alone is sufficient to fix the problem.
Patch 1:
To fix the display of this particular column, only, the call to value_str(dt)
in ui5/infodialog.py can be changed to
value_str(
Patch 2:
To fix this for all QDateTime values in the system, value_str can be made to detect the type and apply data.toString() even when running under Python 3. (It will always apply data.toString(), under Python 2.)
description: | updated |