Fiori上时区显示问题

Bug:
I created this Lead on 14:21 TimeZone is UTC+8. The change log should show time 14:21, but it show the CET time(6 hours gap).

clipboard1

Solution:

clipboard2

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

clipboard3

Key Point:
Make clear to the time convert during backend and frontend.
(1)In DB, it’s CET time.

clipboard4

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

clipboard5

(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)

clipboard6

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

clipboard7

It’s the process of time convert, be clear.
要获取更多Jerry的原创文章,请关注公众号"汪子熙":

展开阅读全文
©️2020 CSDN 皮肤主题: 深蓝海洋 设计师: CSDN官方博客 返回首页
实付0元
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、C币套餐、付费专栏及课程。

余额充值