File: bug967.php

package info (click to toggle)
php-date 1.4.6-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 468 kB
  • ctags: 751
  • sloc: php: 7,339; xml: 422; makefile: 40
file content (14 lines) | stat: -rw-r--r-- 397 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<?php
require_once 'Date.php';
$_DATE_TIMEZONE_DEFAULT = 'Pacific/Chatham';
$tz = Date_TimeZone::getDefault();
if ($tz->id!=$_DATE_TIMEZONE_DEFAULT && $tz->id!='Pacific/Chatham') {
    echo "setDefault Failed\n";
}
Date_TimeZone::setDefault('CST');
$default = 'EST';
$tz = Date_TimeZone::getDefault();
if ($tz->id!=$_DATE_TIMEZONE_DEFAULT && $tz->id!='EST') {
    echo "setDefault Failed\n";
}
?>