# How to update CZML datasource clock after czml.process?

**URL:** <https://community.cesium.com/t/how-to-update-czml-datasource-clock-after-czml-process/15209>\
**Category:** CesiumJS\
**Created:** [September 9, 2021, 11:15am UTC](https://community.cesium.com/t/how-to-update-czml-datasource-clock-after-czml-process/15209 "2021-09-09T11:15:10Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![fation](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/fation/32/3458_2.png) [@fation](https://community.cesium.com/u/fation)\
**Post date:** [September 9, 2021, 11:15am UTC](https://community.cesium.com/t/how-to-update-czml-datasource-clock-after-czml-process/15209/1 "2021-09-09T11:15:10Z")

</div>

Why the datasouce clock is not updated automatically from processed data?  
Should be done manually?

---

<div class="post-metadata">

**Author:** ![sam.rothstein](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/sam.rothstein/32/6584_2.png) [@sam.rothstein](https://community.cesium.com/u/sam.rothstein)\
**Post date:** [September 13, 2021, 3:11am UTC](https://community.cesium.com/t/how-to-update-czml-datasource-clock-after-czml-process/15209/2 "2021-09-13T03:11:14Z")

</div>

@fation

Could you please share a bit more information on your use case? What are you trying to accomplish with this project and how does CZML fit in? I am also not sure what you mean by this:

> [@fation](#):
>
> Should be done manually?

I would love to help you work through your issue but I need a little bit more information about your project. I am looking forward to learning more.

-Sam

---

<div class="post-metadata">

**Author:** ![fation](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/fation/32/3458_2.png) [@fation](https://community.cesium.com/u/fation)\
**Post date:** [September 13, 2021, 6:08am UTC](https://community.cesium.com/t/how-to-update-czml-datasource-clock-after-czml-process/15209/3 "2021-09-13T06:08:44Z")

</div>

I have created a czml datasource, and after 5 minutes i process other data that has TimeIntervalCollection format. After this data is finished processing the clock on cmzl is not upated as per the TimeIntervalCollection

---

<div class="post-metadata">

**Author:** ![sam.rothstein](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/sam.rothstein/32/6584_2.png) [@sam.rothstein](https://community.cesium.com/u/sam.rothstein)\
**Post date:** [September 13, 2021, 2:16pm UTC](https://community.cesium.com/t/how-to-update-czml-datasource-clock-after-czml-process/15209/4 "2021-09-13T14:16:41Z")

</div>

@fation

Do you have a way of manually updating the clock?

-Sam

---

<div class="post-metadata">

**Author:** ![fation](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/fation/32/3458_2.png) [@fation](https://community.cesium.com/u/fation)\
**Post date:** [September 13, 2021, 3:21pm UTC](https://community.cesium.com/t/how-to-update-czml-datasource-clock-after-czml-process/15209/5 "2021-09-13T15:21:09Z")

</div>

czml.clock.startTime = JulianDate.fromIso8601("")  
czml.clock.stopTime = JulianDate.fromIso8601("")

and after from this czml.clock i update viewer timeline

---

<div class="post-metadata">

**Author:** ![sam.rothstein](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/sam.rothstein/32/6584_2.png) [@sam.rothstein](https://community.cesium.com/u/sam.rothstein)\
**Post date:** [September 14, 2021, 2:46pm UTC](https://community.cesium.com/t/how-to-update-czml-datasource-clock-after-czml-process/15209/6 "2021-09-14T14:46:44Z")

</div>

@fation

I recommend using this method.

-Sam
