{"id":649,"date":"2014-06-14T23:25:23","date_gmt":"2014-06-14T14:25:23","guid":{"rendered":"http:\/\/darkgray.homelinux.com\/modules\/xpress\/?p=649"},"modified":"2014-06-14T23:25:23","modified_gmt":"2014-06-14T14:25:23","slug":"php-warning-date_default_timezone_get-%e3%83%bb%e3%83%bb%e3%83%bb","status":"publish","type":"post","link":"https:\/\/darkgray.homelinux.com\/blog\/?p=649","title":{"rendered":"PHP Warning:  date_default_timezone_get(): \u30fb\u30fb\u30fb"},"content":{"rendered":"<p>\u3000\u6700\u8fd1\u3000\u30b5\u30fc\u30d0\u306e\u30ed\u30b0\u306e\u30c1\u30a7\u30c3\u30af\u3082\u3084\u3063\u3066\u306a\u3044\u3002\u3000\u4e45\u3057\u3076\u308a\u306bapache\u95a2\u4fc2\u306e\u30ed\u30b0\u3092\u306e\u305e\u3044\u3066\u898b\u305f\u3089\u5927\u91cf\u306e\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u5410\u304d\u51fa\u3055\u308c\u3066\u3044\u305f\u3002<br \/>\n<!--more--><\/p>\n<p>\u3000\u6700\u521d\u306b\u76ee\u306b\u5165\u3063\u305f\u306e\u306f\u3000\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30a8\u30e9\u30fc\u30ed\u30b0\u3060\u3063\u305f\u3002\u3000Warning\u3060\u304b\u3089\u81f4\u547d\u7684\u554f\u984c\u3067\u306f\u306a\u3044\u306b\u305b\u3088\u3000\u53d6\u308a\u9664\u3044\u305f\u65b9\u304c\u826f\u3044\u306e\u306f\u78ba\u304b\u3060\u3002<\/p>\n<p> PHP Warning:  date_default_timezone_get(): It is not safe to rely on the system&#8217;s timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected &#8216;Asia\/Tokyo&#8217; for &#8216;JST\/9.0\/no DST&#8217; instead in <\/p>\n<p>\u3000\u8abf\u3079\u305f\u7d50\u679c\u3000php.ini\u3092\u4fee\u6b63\u3057\u3066\u3084\u308b\u3068\u76f4\u308b\u3053\u3068\u304c\u5206\u304b\u3063\u305f\u3002\u3000\u4ee5\u524d\u306f\u30b7\u30b9\u30c6\u30e0\u306e\u30bf\u30a4\u30e0\u30be\u30fc\u30f3\u8a2d\u5b9a\u3092\u53d6\u5f97\u3057\u3066\u3044\u305f\u306e\u3092\u3000\u6700\u8fd1\u306ephp\u306f\u3061\u3083\u3093\u3068\u8a2d\u5b9a\u3059\u308b\u3088\u3046\u306b\u4ed5\u69d8\u304c\u5909\u308f\u3063\u305f\u3088\u3046\u3060\u3002<\/p>\n<p>[code]<br \/>\n;date.timezone =     #\u3000\u3053\u306e\u3088\u3046\u306b\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3055\u308c\u3066\u308bdate.timezone\u884c\u3092<br \/>\ndate.timezone = &quot;Asia\/Tokyo&quot;   # timezone\u3092\u8a2d\u5b9a\u3057\u3066\u6709\u52b9\u306b\u3059\u308b\u3002<br \/>\n[\/code]<\/p>\n<p>\u3000\u5f8c\u306fhttpd\u3092\u30ea\u30b9\u30bf\u30fc\u30c8\u3057\u3066\u3084\u308c\u3070OK\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3000\u6700\u8fd1\u3000\u30b5\u30fc\u30d0\u306e\u30ed\u30b0\u306e\u30c1\u30a7\u30c3\u30af\u3082\u3084\u3063\u3066\u306a\u3044\u3002\u3000\u4e45\u3057\u3076\u308a\u306bapache\u95a2\u4fc2\u306e\u30ed\u30b0\u3092\u306e\u305e\u3044\u3066\u898b\u305f\u3089\u5927\u91cf\u306e\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u5410\u304d\u51fa\u3055\u308c\u3066\u3044\u305f\u3002<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"categories":[18],"tags":[],"class_list":["post-649","post","type-post","status-publish","format-standard","hentry","category-php-etc"],"_links":{"self":[{"href":"https:\/\/darkgray.homelinux.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/649","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/darkgray.homelinux.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/darkgray.homelinux.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/darkgray.homelinux.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/darkgray.homelinux.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=649"}],"version-history":[{"count":0,"href":"https:\/\/darkgray.homelinux.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/649\/revisions"}],"wp:attachment":[{"href":"https:\/\/darkgray.homelinux.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=649"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/darkgray.homelinux.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=649"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/darkgray.homelinux.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=649"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}