1--TEST--
2Test date_timezone_get() function : basic functionality
3--FILE--
4<?php
5echo "*** Testing date_timezone_get() : basic functionality ***\n";
6
7date_default_timezone_set("Europe/London");
8$object = date_create("2009-01-30 17:57:32");
9$tz = date_timezone_get($object);
10var_dump( timezone_name_get($tz) );
11
12date_default_timezone_set("America/New_York");
13$object = date_create("2009-01-30 17:57:32");
14$tz = date_timezone_get($object);
15var_dump( timezone_name_get($tz) );
16
17$la_time = timezone_open("America/Los_Angeles");
18date_timezone_set($object, $la_time);
19$tz = date_timezone_get($object);
20var_dump( timezone_name_get($tz) );
21
22?>
23--EXPECT--
24*** Testing date_timezone_get() : basic functionality ***
25string(13) "Europe/London"
26string(16) "America/New_York"
27string(19) "America/Los_Angeles"
28