# How to Persist Date/Time Across Watchdog Resets

**URL:** <https://forum.sierrawireless.com/t/how-to-persist-date-time-across-watchdog-resets/24315>\
**Category:** WP Series\
**Created:** [July 20, 2021, 10:49pm UTC](https://forum.sierrawireless.com/t/how-to-persist-date-time-across-watchdog-resets/24315 "2021-07-20T22:49:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dbeckwith](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/dbeckwith/32/4479_2.png) [@dbeckwith](https://forum.sierrawireless.com/u/dbeckwith)\
**Post date:** [July 20, 2021, 10:49pm UTC](https://forum.sierrawireless.com/t/how-to-persist-date-time-across-watchdog-resets/24315/1 "2021-07-20T22:49:27Z")

</div>

I am using the WP8548 module and we have an app that records special sensor data to a file using GNSS time and date. In order to get around connectivity issues we have implemented a watchdog timer that goes off after 3 hours of no cellular data connectivity with AirVantage.

When the WP module the GNSS time and data are not valid as it needs time to fix. How can I get a valid date/time while the GNSS is in process of getting a fix? Would the RTC be the best time source in this case?

Thanks,

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/jyijyi/32/4766_2.png) [@jyijyi](https://forum.sierrawireless.com/u/jyijyi)\
**Post date:** [July 21, 2021, 12:58am UTC](https://forum.sierrawireless.com/t/how-to-persist-date-time-across-watchdog-resets/24315/2 "2021-07-21T00:58:40Z")

</div>

did you get valid time for “date” command?  
If yes, then you can use that information.

---

<div class="post-metadata">

**Author:** ![dbeckwith](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/dbeckwith/32/4479_2.png) [@dbeckwith](https://forum.sierrawireless.com/u/dbeckwith)\
**Post date:** [July 21, 2021, 2:09am UTC](https://forum.sierrawireless.com/t/how-to-persist-date-time-across-watchdog-resets/24315/3 "2021-07-21T02:09:04Z")

</div>

I haven’t checked the results of the date command, I will try that tomorrow. If this work’s what API should I use to access this via Legato? If it doesn’t work, what else can I try?

Thanks,

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/jyijyi/32/4766_2.png) [@jyijyi](https://forum.sierrawireless.com/u/jyijyi)\
**Post date:** [July 21, 2021, 2:19am UTC](https://forum.sierrawireless.com/t/how-to-persist-date-time-across-watchdog-resets/24315/4 "2021-07-21T02:19:48Z")

</div>

you can see here:

[https://docs.legato.io/latest/howToSetUserTimebase.html](https://docs.legato.io/latest/howToSetUserTimebase.html)
