diff options
Diffstat (limited to 'ext/date/tests/timezone-configuration.phpt')
| -rw-r--r-- | ext/date/tests/timezone-configuration.phpt | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/ext/date/tests/timezone-configuration.phpt b/ext/date/tests/timezone-configuration.phpt new file mode 100644 index 0000000..c70d645 --- /dev/null +++ b/ext/date/tests/timezone-configuration.phpt @@ -0,0 +1,19 @@ +--TEST-- +timezone configuration [1] +--INI-- +date.timezone=GMT +--FILE-- +<?php + date_default_timezone_set('Europe/Oslo'); + echo strtotime("2005-06-18 22:15:44"), "\n"; + + date_default_timezone_set('Europe/London'); + echo strtotime("2005-06-18 22:15:44"), "\n"; + + date_default_timezone_set('Europe/Oslo'); + echo strtotime("2005-06-18 22:15:44"), "\n"; +?> +--EXPECT-- +1119125744 +1119129344 +1119125744 |
