前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >SAP Fiori UI上关于时区Timezone的一些问题和解决方案

SAP Fiori UI上关于时区Timezone的一些问题和解决方案

作者头像
Jerry Wang
发布2019-05-31 15:30:25
8770
发布2019-05-31 15:30:25
举报

先说问题,我创建了一个Lead,创建时间14:21, TimeZone is UTC+8.

我期望的修改日志显示的时间也是14:21, 结果错误的显示成了CET time(有六个小时的差异).

在这里插入图片描述
在这里插入图片描述

解决方案

加上下面的时间戳转换,把SAP Netweaver系统里的时区设置考虑进去。

在这里插入图片描述
在这里插入图片描述

Make clear there is two Personal Time Zone in the backend (User Time Zone and System Time Zone).

在这里插入图片描述
在这里插入图片描述

Key Point

Make clear to the time convert during backend and frontend.

(1) In DB, it’s UTC time.

在这里插入图片描述
在这里插入图片描述

(2) In OneOrder, after select data from DB, we use below function, convert the UTC time to User Time Zone.

在这里插入图片描述
在这里插入图片描述

(3) In our program, we can’t transport User Time Zone out to UI directly, we should convert User Time Zone to UTC and update it_ausg. (it’s better for UI to convert UTC to your browser time)

在这里插入图片描述
在这里插入图片描述

(4) In the frontend, we can just use one logic, convert UTC to local time.

在这里插入图片描述
在这里插入图片描述
本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2018年12月14日,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • 解决方案
  • Key Point
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档