From c73601b4b39d5b61d098f23ae634dc7b10534fa1 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 6095a3466..bbf7fd608 100644 --- a/artiq/dashboard/experiments.py +++ b/artiq/dashboard/experiments.py @@ -258,7 +258,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):