pertializecss输入日期显示前一天
当我显示一个带有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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论