# Global var Time not recalling properly

**URL:** <https://discourse.nodered.org/t/global-var-time-not-recalling-properly/22586>\
**Category:** General\
**Created:** [3 March 2020 21:08 UTC](https://discourse.nodered.org/t/global-var-time-not-recalling-properly/22586 "2020-03-03T21:08:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![spyder0552](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/spyder0552/32/14035_2.png) [@spyder0552](https://discourse.nodered.org/u/spyder0552)\
**Post date:** [3 March 2020 21:08 UTC](https://discourse.nodered.org/t/global-var-time-not-recalling-properly/22586/1 "2020-03-03T21:08:05Z")

</div>

I have a input box on my dashboard with the mode set to time picker.  
I pass that value into a function which then stores it as a global variable (using the local file system).

global.set('ShiftEnd1',msg.payload);  
return msg;

So I can see the global variable value in the file system, see it be updated and such so all is great.

However, if I close my browser and relaunch the dashboard site, the values are not going back into the time picker. It shows as if I never put anything in there.

However, I can still look at the local file system and see the "global.json" still has the correct value.

Am I doing something wrong?

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [3 March 2020 21:36 UTC](https://discourse.nodered.org/t/global-var-time-not-recalling-properly/22586/2 "2020-03-03T21:36:40Z")

</div>

What have you done to feed the global saved value into the time picker on startup?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [2 May 2020 21:39 UTC](https://discourse.nodered.org/t/global-var-time-not-recalling-properly/22586/3 "2020-05-02T21:39:30Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
