Update Current Time
- Last UpdatedOct 10, 2025
- 1 minute read
The updateCurrentTime property is used to notify the widget to update the current time. In order for this property to work, the showCurrentTime globalSetting element must be set to True.
You can use this property with these other properties to update the current time:
-
data
-
updateDataSegments
-
actionRange
To visualize how the current time appears in the widget, see Multiple Gantt Chart widget.
Example
The following script updates the current time.
control.findByXmlNode("Widget1").widgetProperties.updateCurrentTime = JSON.stringify(
Date.now());