3
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

XAMPP php.ini date.timezoneをAsia/Tokyoにする

Posted at

#XAMPPのphp.ini編集でのつまずき。
##date.timezoneの変更が反映されない。
950行付近を編集。

.ini
[Date]
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
date.timezone=Asia/Tokyo

datetimezone.PNG
"Asia/Tokyo"のように"をつけてみたり再起動してみたりしましたが反映されず...。

##date.timezoneは2か所ある!
php.iniを下まで見たところ1935行目付近に下記のような記述を見つけたので編集。

.ini
[Date]
; date.timezone=Europe/Berlin
date.timezone=Asia/Tokyo

datetimezone_2.PNG
反映された!!!
初心者なりに頑張って解決できて達成感でいっぱいですw

3
3
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?