简体   繁体   中英

CONVERT_TZ and european format date

what is the best way to transform unix timestamp in european date format ? I use DATE_FORMAT(FROM_UNIXTIME(i.opened), '%d/%m/%Y %H:%i') AS DATE_OUVERTURE but infortunately it doesn't handle the timezone or maybe my database has a wrong configuration. I tried the function CONVERT_TZ but I noticed that it doesn't like european format.

SET time_zone = 'Europe/Paris'通过您的链接Vatev解决了我的问题。

如果要根据本地格式设置本地日期的格式,则应将strftimesetlocale一起检出。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM