好的,我正在使用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)
那么如何处理时区和夏令时的任何建议?
提前致谢