[Solved] Install error: Warning: date() [function.date]

Frequently asked questions and solutions to common issues with IntraMessenger products. Please check here before posting a problem.

[Solved] Install error: Warning: date() [function.date]

Unread postby itdev » Sat Sep 05, 2015 7:42 am

I have linux CentOS 6.7 running as server. While setting up intramessenger server on this system, I get the following page after step 7:


Warning: date() [function.date]: It is not safe to rely on the system'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 'Asia/Calcutta' for 'IST/5.0/no DST' instead in /var/www/html/intramessenger/admin/list_options_update.php on line 817

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/intramessenger/admin/list_options_update.php:817) in /var/www/html/intramessenger/admin/list_options_update.php on line 829


KIndly please anyone help me in sorting out this issue.Thanks in advance.
itdev
 
Posts: 5
Joined: Sat Sep 05, 2015 7:31 am

Re: Installation error: Warning: date() [function.date]:

Unread postby THeUDS » Sat Sep 05, 2015 7:56 am

Do you have downloaded the 2.0.6 version ?


If already,
just know have already some code to avoid this
at end of file /common/functions.inc.php
Code: Select all
if (function_exists('date_default_timezone_set'))
{
  $fus = ini_get('date.timezone');
  if ($fus != "") date_default_timezone_set($fus);
}

but appear to not be "used".

Can you add after this (but before "?>"):
Code: Select all
date_default_timezone_set("Europe/Paris");

to manually force ("Europe/Paris" is just an example)
User avatar
THeUDS
 
Posts: 2311
Joined: Fri Apr 15, 2005 6:56 pm

Re: Installation error: Warning: date() [function.date]:

Unread postby itdev » Sat Sep 05, 2015 8:10 am

THANKS A MILLION!!!
YOU SAVED MY DAY.. :D
itdev
 
Posts: 5
Joined: Sat Sep 05, 2015 7:31 am


Return to Frequently Asked Questions (FAQ)

Who is online

Users browsing this forum: No registered users and 1 guest

cron