Skip to content

Commit

Permalink
(SliceInfo) Do timestamp server-side.
Browse files Browse the repository at this point in the history
part of CURA-12262
  • Loading branch information
rburema committed Nov 7, 2024
1 parent 48bfed0 commit 08f310b
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions plugins/SliceInfoPlugin/SliceInfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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")
Expand Down

0 comments on commit 08f310b

Please sign in to comment.