小编Joh*_*ohn的帖子

使用ics日期/时间格式管理php中的时区

好的,我正在使用ICS解析器实用程序来解析谷歌日历ICS文件.它工作得很好,除了谷歌给我提供UCT事件的时间..所以我需要减去5小时现在,减少夏令时6小时.

为了得到我正在使用的开始时间:

$timestart = date("g:iA",strtotime(substr($event['DTSTART'], 9, -3)));
//$event['DTSTART'] feeds me back the date in ICS format: 20100406T200000Z
Run Code Online (Sandbox Code Playgroud)

那么如何处理时区和夏令时的任何建议?

提前致谢

php time icalendar date

3
推荐指数
1
解决办法
6127
查看次数

标签 统计

date ×1

icalendar ×1

php ×1

time ×1