Top > 日記 > 2015-07-02

DateTime()でエラー*1

/etc/php.iniで標準時間設定をしていない場合に発生する

 vi /etc/php.ini

; Defines the default timezone used by the date functios
; http://www.php.net/manual/en/datetime.configuration.php#ini.date.timezone
;date.timezone =
date.timezone = Asia/Tokyo

# /etc/init.d/httpd restart

URL B I U SIZE Black Maroon Green Olive Navy Purple Teal Gray Silver Red Lime Yellow Blue Fuchsia Aqua White


*1 php 5.3.3

Reload   New Lower page making Unfreeze Diff Copy Rename   Front page List of pages Search Recent changes Backup Referer   Help   RSS of recent changes
Last-modified: Wed, 01 Jul 2015 22:43:32 HADT (3599d)