# 有人知道这个 MiniRacer::RuntimeError（TypeError：moment.tz 不是一个函数）错误是什么吗？

**URL:** https://meta.discourse.org/t/anybody-know-what-this-miniracer-runtimeerror-typeerror-moment-tz-is-not-a-function-error-is/335665
**Category:** Support
**Created:** [2024年十一月11日 23:08 UTC](https://meta.discourse.org/t/anybody-know-what-this-miniracer-runtimeerror-typeerror-moment-tz-is-not-a-function-error-is/335665 "2024-11-11T23:08:33Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)
#### Post date: [2025年八月2日 05:11 UTC](https://meta.discourse.org/t/anybody-know-what-this-miniracer-runtimeerror-typeerror-moment-tz-is-not-a-function-error-is/335665/3 "2025-08-02T05:11:33Z")

</div>

这里也遇到了同样的问题

> [@Create post with markdown date returns error 500](https://meta.discourse.org/t/create-post-with-markdown-date-returns-error-500/376663):
>
> Hi, when I try to create a post with markdown date i’ll get an error 500. This error trigger via normal frontend post also! What i’m doing wrong? curl -X POST `https://forum.example.com/posts.json` -H “Api-Key: \<myKey\>” -H “Api-Username: nobodyfrm” -H “Content-Type: application/json” -d ‘{“topic\_id”: 553,“raw”: “CSD Limburg 2025-05-10T00:00:00Z (UTC)”}’ Logs: Message (11 copies reported) MiniRacer::RuntimeError (TypeError: moment.tz is not a function) lib/pretty\_text.rb:238:in `eval' lib/…

---

_[View the full topic](https://meta.discourse.org/t/anybody-know-what-this-miniracer-runtimeerror-typeerror-moment-tz-is-not-a-function-error-is/335665)._
