# 500 Error when posting, moment.tz runtime error

**URL:** <https://meta.discourse.org/t/500-error-when-posting-moment-tz-runtime-error/315860>\
**Category:** Bug\
**Created:** [July 11, 2024, 3:57am UTC](https://meta.discourse.org/t/500-error-when-posting-moment-tz-runtime-error/315860 "2024-07-11T03:57:05Z")\
**Posts on this page:** 1\
**Showing post:** 16

<div class="post-metadata">

**Author:** ![thoka](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thoka/32/115652_2.png) [@thoka](https://meta.discourse.org/u/thoka)\
**Post date:** [July 25, 2024, 5:14am UTC](https://meta.discourse.org/t/500-error-when-posting-moment-tz-runtime-error/315860/16 "2024-07-25T05:14:25Z")

</div>

Perhaps related?

You can trigger a runtime error in `discourse-local-dates` if you enter a wrong timezone in a `date-range`:

`date` works with wrong timezone:  
`[date=2024-07-25 time=14:05:00 timezone="Europe/Berlinx"]`  
2024-07-25T14:05:00Z

`date-range` does not:

`[date-range from=2024-07-25T15:00:00 to=2024-07-25T17:00:00 timezone="Europe/Berlinx"]`  
2024-07-25T15:00:00Z→2024-07-25T17:00:00Z

From here on, other dates will not be parsed:  
`[date=2024-07-25 time=14:05:00 timezone="Europe/Berlin"]`  
2024-07-25T12:05:00Z

 ![image](https://global.discourse-cdn.com/meta/original/4X/6/d/e/6de92f2c47b890b4614de40eb0976701105b458c.png)

---

_[View the full topic](https://meta.discourse.org/t/500-error-when-posting-moment-tz-runtime-error/315860)._
