{"id":21,"date":"2017-10-08T05:10:00","date_gmt":"2017-10-08T05:10:00","guid":{"rendered":"https:\/\/linuxadmin.melberi.com\/uncategorized\/not-safe-to-rely-on-systems-timezone"},"modified":"2017-10-08T13:06:36","modified_gmt":"2017-10-08T13:06:36","slug":"not-safe-to-rely-timezone","status":"publish","type":"post","link":"https:\/\/www.melberi.com\/linuxadmin\/php\/not-safe-to-rely-timezone","title":{"rendered":"It is not safe to rely on the system&#8217;s timezone settings : PHP Date Error Cacti"},"content":{"rendered":"<p>Apache Error: It is not safe to rely on the system&#8217;s timezone settings\u00a0php.ini Cacti, wordpress, joomla, phpmyadmin, phpinfo, zabbix, drupal, symfony, cakephp, codeigniter bitrix CentOS<\/p>\n<p>After Upgrading the PHP, following error message was coming in the httpd error_log log<\/p>\n<h3><u>PHP Error<\/u><\/h3>\n<p><b>#tail -f \/var\/log\/httpd\/error_log <\/b><\/p>\n<p><span style=\"color: #808080;\">[Fri Jul 23 17:15:31 2010] [error] [client ] PHP Warning:\u00a0 date() [function.date]: It is not safe to rely on the system&#8217;s timezone settings. <\/span><br \/>\n<span style=\"color: #808080;\">You are *required* to use the date.timezone setting or the date_default_timezone_set() function. <\/span><br \/>\n<span style=\"color: #808080;\">In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. <\/span><br \/>\n<span style=\"color: #808080;\">We selected &#8216;Asia\/Calcutta&#8217; for &#8216;IST\/5.0\/no DST&#8217; instead in \/IlohaMail\/include\/ryosimap.inc on line 117, referer:<\/span><\/p>\n<h3><u><b>Solution<\/b>:<\/u><\/h3>\n<p>1. Edit the php.ini file and Set the correct time zone.<br \/>\nThe default location of the file is \/etc\/php.ini<\/p>\n<p><b>#vim \/etc\/php.ini<\/b><br \/>\n<b><br \/>\n2. Search for &#8216;timezone&#8217; in php.ini file and change it as show below<\/b><\/p>\n<p><b>;date.timezone =<\/b><br \/>\nto<br \/>\n<b>date.timezone = &#8220;America\/New_York&#8221;<\/b><br \/>\nor whatever specific timezone you are in.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Apache Error: It is not safe to rely on the system&#8217;s timezone settings\u00a0php.ini Cacti, wordpress, joomla, phpmyadmin, phpinfo, zabbix, drupal, symfony, cakephp, codeigniter bitrix CentOS After Upgrading the PHP, following&#8230; <a href=\"https:\/\/www.melberi.com\/linuxadmin\/php\/not-safe-to-rely-timezone\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[102,103],"tags":[],"class_list":["post-21","post","type-post","status-publish","format-standard","hentry","category-apache","category-php"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.3 - aioseo.com -->\n\t<meta name=\"description\" content=\"Apache Error: It is not safe to rely on the system&#039;s timezone settings php.ini Cacti, wordpress, joomla, phpmyadmin, phpinfo, zabbix, drupal, symfony, cakephp, codeigniter bitrix CentOS After Upgrading the PHP, following error message was coming in the httpd error_log log PHP Error #tail -f \/var\/log\/httpd\/error_log [Fri Jul 23 17:15:31 2010] [error] [client ] PHP Warning: date()\" \/>\n\t<meta name=\"robots\" content=\"max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n\t<meta name=\"author\" content=\"admin\"\/>\n\t<meta name=\"msvalidate.01\" content=\"F5B964E0B63F681BBDE95AB72193D75E\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.melberi.com\/linuxadmin\/php\/not-safe-to-rely-timezone\" \/>\n\t\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.3\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/php\\\/not-safe-to-rely-timezone#article\",\"name\":\"It is not safe to rely on the system\\u2019s timezone settings : PHP Date Error Cacti - Linux How To\",\"headline\":\"It is not safe to rely on the system&#8217;s timezone settings : PHP Date Error Cacti\",\"author\":{\"@id\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/author\\\/admin#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/wp-content\\\/uploads\\\/sites\\\/3\\\/2021\\\/06\\\/MelB.png\",\"@id\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/#articleImage\",\"width\":320,\"height\":320},\"datePublished\":\"2017-10-08T05:10:00+00:00\",\"dateModified\":\"2017-10-08T13:06:36+00:00\",\"inLanguage\":\"en-US\",\"commentCount\":1,\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/php\\\/not-safe-to-rely-timezone#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/php\\\/not-safe-to-rely-timezone#webpage\"},\"articleSection\":\"APACHE, PHP\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/php\\\/not-safe-to-rely-timezone#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/category\\\/apache#listItem\",\"name\":\"APACHE\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/category\\\/apache#listItem\",\"position\":2,\"name\":\"APACHE\",\"item\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/category\\\/apache\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/php\\\/not-safe-to-rely-timezone#listItem\",\"name\":\"It is not safe to rely on the system&#8217;s timezone settings : PHP Date Error Cacti\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/php\\\/not-safe-to-rely-timezone#listItem\",\"position\":3,\"name\":\"It is not safe to rely on the system&#8217;s timezone settings : PHP Date Error Cacti\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/category\\\/apache#listItem\",\"name\":\"APACHE\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/#organization\",\"name\":\"Linux How To\",\"url\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/wp-content\\\/uploads\\\/sites\\\/3\\\/2021\\\/06\\\/MelB.png\",\"@id\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/php\\\/not-safe-to-rely-timezone\\\/#organizationLogo\",\"width\":320,\"height\":320},\"image\":{\"@id\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/php\\\/not-safe-to-rely-timezone\\\/#organizationLogo\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/author\\\/admin#author\",\"url\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/author\\\/admin\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/php\\\/not-safe-to-rely-timezone#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/1ee7acbcab1a0ae6b35481c34cd31ee5c4d15292f5a1e069321cd34f1ceccd11?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"admin\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/php\\\/not-safe-to-rely-timezone#webpage\",\"url\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/php\\\/not-safe-to-rely-timezone\",\"name\":\"It is not safe to rely on the system\\u2019s timezone settings : PHP Date Error Cacti - Linux How To\",\"description\":\"Apache Error: It is not safe to rely on the system's timezone settings php.ini Cacti, wordpress, joomla, phpmyadmin, phpinfo, zabbix, drupal, symfony, cakephp, codeigniter bitrix CentOS After Upgrading the PHP, following error message was coming in the httpd error_log log PHP Error #tail -f \\\/var\\\/log\\\/httpd\\\/error_log [Fri Jul 23 17:15:31 2010] [error] [client ] PHP Warning: date()\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/php\\\/not-safe-to-rely-timezone#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/author\\\/admin#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/author\\\/admin#author\"},\"datePublished\":\"2017-10-08T05:10:00+00:00\",\"dateModified\":\"2017-10-08T13:06:36+00:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/#website\",\"url\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/\",\"name\":\"Linux How To\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"It is not safe to rely on the system\u2019s timezone settings : PHP Date Error Cacti - Linux How To","description":"Apache Error: It is not safe to rely on the system's timezone settings php.ini Cacti, wordpress, joomla, phpmyadmin, phpinfo, zabbix, drupal, symfony, cakephp, codeigniter bitrix CentOS After Upgrading the PHP, following error message was coming in the httpd error_log log PHP Error #tail -f \/var\/log\/httpd\/error_log [Fri Jul 23 17:15:31 2010] [error] [client ] PHP Warning: date()","canonical_url":"https:\/\/www.melberi.com\/linuxadmin\/php\/not-safe-to-rely-timezone","robots":"max-snippet:-1, max-image-preview:large, max-video-preview:-1","keywords":"","webmasterTools":{"msvalidate.01":"F5B964E0B63F681BBDE95AB72193D75E","miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.melberi.com\/linuxadmin\/php\/not-safe-to-rely-timezone#article","name":"It is not safe to rely on the system\u2019s timezone settings : PHP Date Error Cacti - Linux How To","headline":"It is not safe to rely on the system&#8217;s timezone settings : PHP Date Error Cacti","author":{"@id":"https:\/\/www.melberi.com\/linuxadmin\/author\/admin#author"},"publisher":{"@id":"https:\/\/www.melberi.com\/linuxadmin\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/www.melberi.com\/linuxadmin\/wp-content\/uploads\/sites\/3\/2021\/06\/MelB.png","@id":"https:\/\/www.melberi.com\/linuxadmin\/#articleImage","width":320,"height":320},"datePublished":"2017-10-08T05:10:00+00:00","dateModified":"2017-10-08T13:06:36+00:00","inLanguage":"en-US","commentCount":1,"mainEntityOfPage":{"@id":"https:\/\/www.melberi.com\/linuxadmin\/php\/not-safe-to-rely-timezone#webpage"},"isPartOf":{"@id":"https:\/\/www.melberi.com\/linuxadmin\/php\/not-safe-to-rely-timezone#webpage"},"articleSection":"APACHE, PHP"},{"@type":"BreadcrumbList","@id":"https:\/\/www.melberi.com\/linuxadmin\/php\/not-safe-to-rely-timezone#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.melberi.com\/linuxadmin\/#listItem","position":1,"name":"Home","item":"https:\/\/www.melberi.com\/linuxadmin\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.melberi.com\/linuxadmin\/category\/apache#listItem","name":"APACHE"}},{"@type":"ListItem","@id":"https:\/\/www.melberi.com\/linuxadmin\/category\/apache#listItem","position":2,"name":"APACHE","item":"https:\/\/www.melberi.com\/linuxadmin\/category\/apache","nextItem":{"@type":"ListItem","@id":"https:\/\/www.melberi.com\/linuxadmin\/php\/not-safe-to-rely-timezone#listItem","name":"It is not safe to rely on the system&#8217;s timezone settings : PHP Date Error Cacti"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.melberi.com\/linuxadmin\/#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.melberi.com\/linuxadmin\/php\/not-safe-to-rely-timezone#listItem","position":3,"name":"It is not safe to rely on the system&#8217;s timezone settings : PHP Date Error Cacti","previousItem":{"@type":"ListItem","@id":"https:\/\/www.melberi.com\/linuxadmin\/category\/apache#listItem","name":"APACHE"}}]},{"@type":"Organization","@id":"https:\/\/www.melberi.com\/linuxadmin\/#organization","name":"Linux How To","url":"https:\/\/www.melberi.com\/linuxadmin\/","logo":{"@type":"ImageObject","url":"https:\/\/www.melberi.com\/linuxadmin\/wp-content\/uploads\/sites\/3\/2021\/06\/MelB.png","@id":"https:\/\/www.melberi.com\/linuxadmin\/php\/not-safe-to-rely-timezone\/#organizationLogo","width":320,"height":320},"image":{"@id":"https:\/\/www.melberi.com\/linuxadmin\/php\/not-safe-to-rely-timezone\/#organizationLogo"}},{"@type":"Person","@id":"https:\/\/www.melberi.com\/linuxadmin\/author\/admin#author","url":"https:\/\/www.melberi.com\/linuxadmin\/author\/admin","name":"admin","image":{"@type":"ImageObject","@id":"https:\/\/www.melberi.com\/linuxadmin\/php\/not-safe-to-rely-timezone#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/1ee7acbcab1a0ae6b35481c34cd31ee5c4d15292f5a1e069321cd34f1ceccd11?s=96&d=mm&r=g","width":96,"height":96,"caption":"admin"}},{"@type":"WebPage","@id":"https:\/\/www.melberi.com\/linuxadmin\/php\/not-safe-to-rely-timezone#webpage","url":"https:\/\/www.melberi.com\/linuxadmin\/php\/not-safe-to-rely-timezone","name":"It is not safe to rely on the system\u2019s timezone settings : PHP Date Error Cacti - Linux How To","description":"Apache Error: It is not safe to rely on the system's timezone settings php.ini Cacti, wordpress, joomla, phpmyadmin, phpinfo, zabbix, drupal, symfony, cakephp, codeigniter bitrix CentOS After Upgrading the PHP, following error message was coming in the httpd error_log log PHP Error #tail -f \/var\/log\/httpd\/error_log [Fri Jul 23 17:15:31 2010] [error] [client ] PHP Warning: date()","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.melberi.com\/linuxadmin\/#website"},"breadcrumb":{"@id":"https:\/\/www.melberi.com\/linuxadmin\/php\/not-safe-to-rely-timezone#breadcrumblist"},"author":{"@id":"https:\/\/www.melberi.com\/linuxadmin\/author\/admin#author"},"creator":{"@id":"https:\/\/www.melberi.com\/linuxadmin\/author\/admin#author"},"datePublished":"2017-10-08T05:10:00+00:00","dateModified":"2017-10-08T13:06:36+00:00"},{"@type":"WebSite","@id":"https:\/\/www.melberi.com\/linuxadmin\/#website","url":"https:\/\/www.melberi.com\/linuxadmin\/","name":"Linux How To","inLanguage":"en-US","publisher":{"@id":"https:\/\/www.melberi.com\/linuxadmin\/#organization"}}]}},"aioseo_meta_data":{"post_id":"21","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"created":"2021-03-11 17:26:44","updated":"2026-10-21 17:10:22","focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null},"_links":{"self":[{"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/posts\/21","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/comments?post=21"}],"version-history":[{"count":5,"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/posts\/21\/revisions"}],"predecessor-version":[{"id":454,"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/posts\/21\/revisions\/454"}],"wp:attachment":[{"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/media?parent=21"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/categories?post=21"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/tags?post=21"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}