SAP Fiori UI上关于时区Timezone的一些问题和解决方案
先說(shuō)問(wèn)題,我創(chuàng)建了一個(gè)Lead,創(chuàng)建時(shí)間14:21, TimeZone is UTC+8.
我期望的修改日志顯示的時(shí)間也是14:21, 結(jié)果錯(cuò)誤的顯示成了CET time(有六個(gè)小時(shí)的差異).
解決方案
加上下面的時(shí)間戳轉(zhuǎn)換,把SAP Netweaver系統(tǒng)里的時(shí)區(qū)設(shè)置考慮進(jìn)去。
 
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的一些问题和解决方案的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
                            
                        - 上一篇: 全新深红配色亮相!iPhone 15 P
 - 下一篇: 克拉美罗界(CRB)