# Update date and time when time change in OS

**URL:** <https://forum.inductiveautomation.com/t/update-date-and-time-when-time-change-in-os/33022>\
**Category:** Ignition\
**Created:** [March 11, 2020, 6:28pm UTC](https://forum.inductiveautomation.com/t/update-date-and-time-when-time-change-in-os/33022 "2020-03-11T18:28:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![atoutautomation](https://avatars.discourse-cdn.com/v4/letter/a/919ad9/32.png) [@atoutautomation](https://forum.inductiveautomation.com/u/atoutautomation)\
**Post date:** [March 11, 2020, 6:28pm UTC](https://forum.inductiveautomation.com/t/update-date-and-time-when-time-change-in-os/33022/1 "2020-03-11T18:28:43Z")

</div>

Hello  
I’m a beginner. Before add a topic, i’ve searched in the documentation and forum without find a solution.  
i’m working on Windows 7 with ignition version 8.0.9  
I wrote **{[System]Gateway/CurrentDateTime.value}** in expression of **label object** , i also tried **now()**.

But if i change the time in OS, the time display in label doesn’t update, the same for Timezone offset.  
About UTC time, i wrote **addHours(now(),-getTimezoneRawOffset())**. tell me if it’s the good way  
How to have a mirror of date time from OS to ignition, always updated (UTC, local time and timezoneoffset).  
The goal is to display UTC and local time, and store some data in database(MariaDB) with UTC time.  
Thank for your help
