1--TEST-- 2IntlTimeZone::getOffset(): basic test 3--INI-- 4date.timezone=Atlantic/Azores 5--EXTENSIONS-- 6intl 7--FILE-- 8<?php 9ini_set("intl.error_level", E_WARNING); 10$ams = IntlTimeZone::createTimeZone('Europe/Amsterdam'); 11 12$date = strtotime("1 July 2012 +0000"); 13 14var_dump($ams->getOffset($date *1000., true, $rawOffset, $dstOffset), 15 $rawOffset, $dstOffset); 16 17$lsb = IntlTimeZone::createTimeZone('Europe/Lisbon'); 18 19var_dump(intltz_get_offset($lsb, $date *1000., true, $rawOffset, $dstOffset), 20 $rawOffset, $dstOffset); 21 22?> 23--EXPECT-- 24bool(true) 25int(3600000) 26int(3600000) 27bool(true) 28int(0) 29int(3600000) 29