1--TEST--
2date_default_timezone_set() function [1]
3--SKIPIF--
4<?php
5if (substr(PHP_OS, 0, 3) == 'WIN') die('skip diff TZ detection on windows.');
6?>
7--INI--
8date.timezone=
9--FILE--
10<?php
11    putenv("TZ=");
12    $date1 = strtotime("2005-01-12 08:00:00");
13    $date2 = strtotime("2005-07-12 08:00:00");
14    date_default_timezone_set("America/Indiana/Knox");
15    $date3 = strtotime("2005-01-12 08:00:00");
16    $date4 = strtotime("2005-07-12 08:00:00");
17
18    echo date_default_timezone_get(), "\n";
19    echo date(DATE_ISO8601, $date1), "\n";
20    echo date(DATE_ISO8601, $date2), "\n";
21    echo date(DATE_ISO8601, $date3), "\n";
22    echo date(DATE_ISO8601, $date4), "\n";
23?>
24--EXPECT--
25America/Indiana/Knox
262005-01-12T03:00:00-0500
272005-07-12T03:00:00-0500
282005-01-12T08:00:00-0500
292005-07-12T08:00:00-0500
30