From 2c7b62254e8c6e2f75ed751d5b6d66b6baee4aa6 Mon Sep 17 00:00:00 2001 From: Florian Agbuya Date: Fri, 14 Jul 2023 15:12:43 +0800 Subject: [PATCH] gui/experiments: cast Qt timestamp to int preventing float type error --- artiq/dashboard/experiments.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artiq/dashboard/experiments.py b/artiq/dashboard/experiments.py index 3c9d5edac..8a0da9fd0 100644 --- a/artiq/dashboard/experiments.py +++ b/artiq/dashboard/experiments.py @@ -268,7 +268,7 @@ class _ExperimentDock(QtWidgets.QMdiSubWindow): datetime.setDate(QtCore.QDate.currentDate()) else: datetime.setDateTime(QtCore.QDateTime.fromMSecsSinceEpoch( - scheduling["due_date"]*1000)) + int(scheduling["due_date"]*1000))) datetime_en.setChecked(scheduling["due_date"] is not None) def update_datetime(dt):