From 08f310b300defd785773f937bdd8beaf93fb9f90 Mon Sep 17 00:00:00 2001 From: Remco Burema Date: Thu, 7 Nov 2024 11:02:46 +0100 Subject: [PATCH] (SliceInfo) Do timestamp server-side. part of CURA-12262 --- plugins/SliceInfoPlugin/SliceInfo.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/plugins/SliceInfoPlugin/SliceInfo.py b/plugins/SliceInfoPlugin/SliceInfo.py index 61ebd059a5f..81c0ca05c83 100755 --- a/plugins/SliceInfoPlugin/SliceInfo.py +++ b/plugins/SliceInfoPlugin/SliceInfo.py @@ -157,7 +157,6 @@ def _onWriteStarted(self, output_device): 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 @@ def _onWriteStarted(self, output_device): 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")