pertializecss输入日期显示前一天

发布于 2025-01-25 07:21:40 字数 539 浏览 2 评论 0原文

当我显示一个带有datePicker从我的SQL数据中传递的输入字段时,pocitionizecss如前一天显示该值。如果我使用斜杠而不是破折号重新格式化日期,那是有效的,但这是一个可怕的长期解决方案。

这是代码:

<input type="text" class="datepicker" value="2022-03-15">

该代码将在3月14日在pertializecss中显示,如果保存,则将其保存为3月14日。

这是显示不正确行为的代码蛋白。

https://codepen.io/programminglabs/pen/pen/pen/pen/exqxnvx

在posticalizecss中,但我找不到。我希望问题是我需要添加一个微秒。我该如何在我的物质环境中在全球范围内做到这一点?

When I show an input field with datepicker passing in a value from my SQL data, MaterializeCSS is displaying the value as the day before. It works if I reformat the date using slashes instead of dashes, but that is a horrible long-term solution.

Here is the code:

<input type="text" class="datepicker" value="2022-03-15">

Which will show as March 14th in MaterializeCSS and if you save, it saves it as March 14th.

Here is the CodePen showing the incorrect behavior.

https://codepen.io/programminglabs/pen/ExQxNvx

There must be a setting in JS in MaterializeCSS but I cannot find it. I expect the issue is I need to add one microsecond. How can I do that globally in my MaterializeCSS environment?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文