Hi Henjoe,
Perhaps not helpful, but I had a similar issue (with charts in the dashboard) recently and I solved it by adding moment
and moment-timezone
libs in settings.js
and including / requiring them in my functions and adjusting TZ that way.
Something like this in settings.js
functionGlobalContext: {
moment:require('moment'),
momenttz:require('moment-timezone')
},
and then using these libs in my functions.
I'm sure my way is "kludgy" (as it often is with my impatient and "quick to fix and move on'" nature (my bad, I know!),
Looking forward to learning a better way from the experts here, for sure!