mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-15 02:16:01 +08:00
(SliceInfo) Do timestamp server-side.
part of CURA-12262
This commit is contained in:
parent
48bfed0643
commit
08f310b300
@ -157,7 +157,6 @@ class SliceInfo(QObject, Extension):
|
||||
global_stack = machine_manager.activeMachine
|
||||
|
||||
data = dict() # The data that we're going to submit.
|
||||
data["time_stamp"] = time.time()
|
||||
data["schema_version"] = 1000
|
||||
data["cura_version"] = self._application.getVersion()
|
||||
data["cura_build_type"] = ApplicationMetadata.CuraBuildType
|
||||
@ -334,8 +333,6 @@ class SliceInfo(QObject, Extension):
|
||||
flat_data = dict()
|
||||
self._flattenData(data, flat_data)
|
||||
data = flat_data
|
||||
timestamp = datetime.datetime.utcfromtimestamp(float(data["time_stamp"]))
|
||||
data["timestamp"] = f"{str(timestamp)} UTC"
|
||||
|
||||
# Convert data to bytes
|
||||
binary_data = json.dumps(data).encode("utf-8")
|
||||
|
Loading…
x
Reference in New Issue
Block a user