forked from M-Labs/artiq
1
0
Fork 0

gui/experiments: cast Qt timestamp to int preventing float type error

This commit is contained in:
Florian Agbuya 2023-07-14 15:12:43 +08:00 committed by Sébastien Bourdeauducq
parent 9f8bb6445f
commit d73889fb27
1 changed files with 1 additions and 1 deletions

View File

@ -268,7 +268,7 @@ class _ExperimentDock(QtWidgets.QMdiSubWindow):
datetime.setDate(QtCore.QDate.currentDate()) datetime.setDate(QtCore.QDate.currentDate())
else: else:
datetime.setDateTime(QtCore.QDateTime.fromMSecsSinceEpoch( datetime.setDateTime(QtCore.QDateTime.fromMSecsSinceEpoch(
scheduling["due_date"]*1000)) int(scheduling["due_date"]*1000)))
datetime_en.setChecked(scheduling["due_date"] is not None) datetime_en.setChecked(scheduling["due_date"] is not None)
def update_datetime(dt): def update_datetime(dt):