84669 Lernen von Personen
152542 Lernen von Personen
20005 Lernen von Personen
5487 Lernen von Personen
7821 Lernen von Personen
359900 Lernen von Personen
3350 Lernen von Personen
180660 Lernen von Personen
48569 Lernen von Personen
18603 Lernen von Personen
40936 Lernen von Personen
1549 Lernen von Personen
1183 Lernen von Personen
32909 Lernen von Personen
因为目前我们应用里面存储和解析都用的中国时区的时间戳来存储,目前使用过程中也没有问题,不知道有没有必要转化为UTC再存储,目前会有什么问题?
认证高级PHP讲师
传毫秒时间戳 timeIntervalSince1970 * 1000
timeIntervalSince1970 The interval between the date object and 00:00:00 UTC on 1 January 1970.
遇到别的时区用户的话,时间就会不准,之前我们服务器也是存的东八区的时间戳,发现别的国家用户客户端打开的时间有偏差;存时间戳数据查询,比较,排序比较方便;如果有时区方面的需求,建议尽早转utc
传毫秒时间戳 timeIntervalSince1970 * 1000
遇到别的时区用户的话,时间就会不准,之前我们服务器也是存的东八区的时间戳,发现别的国家用户客户端打开的时间有偏差;存时间戳数据查询,比较,排序比较方便;如果有时区方面的需求,建议尽早转utc