# Help needed with custom function: error: Invalid time zone specified: undefined

**URL:** https://community.silverbullet.md/t/help-needed-with-custom-function-error-invalid-time-zone-specified-undefined/1110
**Category:** v1: Troubleshooting (legacy)
**Created:** [October 11, 2024, 1:00pm UTC](https://community.silverbullet.md/t/help-needed-with-custom-function-error-invalid-time-zone-specified-undefined/1110 "2024-10-11T13:00:17Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![mjf](https://community.silverbullet.md/user_avatar/community.silverbullet.md/mjf/32/654_2.png) [@mjf](https://community.silverbullet.md/u/mjf)
#### Post date: [October 11, 2024, 2:05pm UTC](https://community.silverbullet.md/t/help-needed-with-custom-function-error-invalid-time-zone-specified-undefined/1110/3 "2024-10-11T14:05:20Z")

</div>

@bent0n If it was syntax issue I wouldn’t had asked. 🙂 But this doesn’t look like syntax issue. The function does not know what time zone it should use, I guess, so I had to pass it somehow. This exact snippet was taken from this forum from [here](https://community.silverbullet.md/t/additional-date-functions/384). Perhaps I’m blind but both looks the same…

---

_[View the full topic](https://community.silverbullet.md/t/help-needed-with-custom-function-error-invalid-time-zone-specified-undefined/1110)._
