0
可能重複:
Convert time and date from one time zone to another in PHP與時區生成一週的開始日期和結束日期偏移
我有兩個變量,顯示周開始和結束日期如下:
$week = strtotime('-' . date('w') . ' days');
$start = date('Y-m-d', $week);
$end = date('Y-m-d', strtotime('+6 days', $week));
如何抵消這些不同時區的日期(例如PST?)
查看http://stackoverflow.com/questions/3905193/convert-time-and-date-from-one-time-zone-to-another-in-php。 – luqmaan