mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-09 07:56:22 -06:00
Merge pull request #866 from thopiekar/master-CURA-1445-only
CURA-1445: Using getDisplayString(ISO8601) in SliceInfo
This commit is contained in:
commit
93a0637b23
1 changed files with 3 additions and 2 deletions
|
@ -10,6 +10,7 @@ from UM.Message import Message
|
||||||
from UM.i18n import i18nCatalog
|
from UM.i18n import i18nCatalog
|
||||||
from UM.Logger import Logger
|
from UM.Logger import Logger
|
||||||
from UM.Platform import Platform
|
from UM.Platform import Platform
|
||||||
|
from UM.Qt.Duration import DurationFormat
|
||||||
|
|
||||||
import collections
|
import collections
|
||||||
import json
|
import json
|
||||||
|
@ -90,7 +91,7 @@ class SliceInfo(Extension):
|
||||||
"settings": global_container_stack.serialize(), # global_container with references on used containers
|
"settings": global_container_stack.serialize(), # global_container with references on used containers
|
||||||
"version": Application.getInstance().getVersion(),
|
"version": Application.getInstance().getVersion(),
|
||||||
"modelhash": "None",
|
"modelhash": "None",
|
||||||
"printtime": print_information.currentPrintTime.getDisplayString(),
|
"printtime": print_information.currentPrintTime.getDisplayString(DurationFormat.Format.ISO8601),
|
||||||
"filament": material_used,
|
"filament": material_used,
|
||||||
"language": Preferences.getInstance().getValue("general/language"),
|
"language": Preferences.getInstance().getValue("general/language"),
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue