【发布时间】:2017-04-21 02:18:33
【问题描述】:
StartDate 的 SiteCore DateTime 值在前端(视图)显示正确的日期,但未显示正确的时间。就像选择的时间是下午 2 点一样。在 Sitecore cms,它应该显示 14:00,但它显示的是 17:00。如何解决这个问题?
【问题讨论】:
标签: c# asp.net datetime sitecore sitecore8
StartDate 的 SiteCore DateTime 值在前端(视图)显示正确的日期,但未显示正确的时间。就像选择的时间是下午 2 点一样。在 Sitecore cms,它应该显示 14:00,但它显示的是 17:00。如何解决这个问题?
【问题讨论】:
标签: c# asp.net datetime sitecore sitecore8
https://briancaos.wordpress.com/2015/04/16/sitecore-8-servertimezone-my-dates-are-all-wrong/
Sitecore 在数据库中使用 UTC 时间。在您的显示中,您需要将其转换为您当地的时区。
更多信息请点击此处:Sitecore DateField's DateTime property shows wrong date 和 https://doc.sitecore.net/sitecore_experience_platform/setting_up_and_maintaining/utc/settings_supporting_utc_implementation
【讨论】: