# Set context array not working

**URL:** <https://discourse.nodered.org/t/set-context-array-not-working/12829>\
**Category:** General\
**Created:** [2 July 2019 13:58 UTC](https://discourse.nodered.org/t/set-context-array-not-working/12829 "2019-07-02T13:58:02Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)\
**Post date:** [2 July 2019 14:05 UTC](https://discourse.nodered.org/t/set-context-array-not-working/12829/2 "2019-07-02T14:05:48Z")

</div>

Unfortunately your flow isn't currently importable.Please read the following post [How to share code or flow json](https://discourse.nodered.org/t/how-to-share-code-or-flow-json/506) and then edit the above message.

Or just paste the function node where you are using getHours, but wrap it in ` as above

---

_[View the full topic](https://discourse.nodered.org/t/set-context-array-not-working/12829)._
