日韩av黄I国产麻豆传媒I国产91av视频在线观看I日韩一区二区三区在线看I美女国产在线I麻豆视频国产在线观看I成人黄色短片

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 >

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

發(fā)布時間:2023/12/19 40 豆豆
生活随笔 收集整理的這篇文章主要介紹了 SAP Fiori UI上关于时区Timezone的一些问题和解决方案 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

先說問題,我創(chuàng)建了一個Lead,創(chuàng)建時間14:21, TimeZone is UTC+8.

我期望的修改日志顯示的時間也是14:21, 結(jié)果錯誤的顯示成了CET time(有六個小時的差異).

解決方案

加上下面的時間戳轉(zhuǎn)換,把SAP Netweaver系統(tǒng)里的時區(qū)設(shè)置考慮進去。

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.

總結(jié)

以上是生活随笔為你收集整理的SAP Fiori UI上关于时区Timezone的一些问题和解决方案的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。