SAP UI5日期数据格式中的UTC: true

when dealing with dates you need to know, that the OData JSON format does represent dates as timestamps. These timestamps are pointingto the represented date, 0:00 UTC. When these dates are now interpreted in the local timezone of the user, you get the day before shown onthe screen (as you already found out). To fix it, you need to tell the DateF ormat, that it should give you the UTC date instead, this can beachieved by adding UTC: true to the format options, like
{style: “medium”. UTC: true}
SAP UI5日期数据格式中的UTC: true
要获取更多Jerry的原创文章,请关注公众号"汪子熙":

SAP UI5日期数据格式中的UTC: true