# Function node - getFullYear error

**URL:** <https://discourse.nodered.org/t/function-node-getfullyear-error/42926>\
**Category:** General\
**Created:** [20 March 2021 13:16 UTC](https://discourse.nodered.org/t/function-node-getfullyear-error/42926 "2021-03-20T13:16:36Z")\
**Posts on this page:** 1\
**Showing post:** 15

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [21 March 2021 10:05 UTC](https://discourse.nodered.org/t/function-node-getfullyear-error/42926/15 "2021-03-21T10:05:36Z")

</div>

I think this comes from a naive fix from this thread - [Splitting array - from MySQL query](https://discourse.nodered.org/t/splitting-array-from-mysql-query/42279/)  
I have now tried to do a better object copy in version 0.1.5 so hopefully anything is now preserved, though my simplistic testing always seems to return strings anyway.

---

_[View the full topic](https://discourse.nodered.org/t/function-node-getfullyear-error/42926)._
