forked from M-Labs/artiq
gui/experiments: cast Qt timestamp to int preventing float type error
This commit is contained in:
parent
9e6ffcfa30
commit
c73601b4b3
@ -258,7 +258,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):
|
||||||
|
Loading…
Reference in New Issue
Block a user