【问题标题】:Time in Sitecore StartDate is not properSitecore StartDate 中的时间不正确
【发布时间】:2017-04-21 02:18:33
【问题描述】:

StartDate 的 SiteCore DateTime 值在前端(视图)显示正确的日期,但未显示正确的时间。就像选择的时间是下午 2 点一样。在 Sitecore cms,它应该显示 14:00,但它显示的是 17:00。如何解决这个问题?

【问题讨论】:

    标签: c# asp.net datetime sitecore sitecore8


    【解决方案1】:

    【讨论】:

    • 让我执行
    • 您不应为此使用指向 sdn.sitecore.net 的链接 - 对于 Sitecore 8+,请使用 doc.sitecore.net。
    • public DateTime serverTime =Sitecore.DateUtil.ToServerTime()。如何在“20170312T190000Z”中添加这个值?我只关心时间。
    • 20170312T190000Z 是我在下午 3 点以 iso 格式获取的字段值。我如何将 20170413T190000Z 转换为下午 3 点还是15:00???
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-10-09
    • 2022-01-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-10-13
    相关资源
    最近更新 更多