From owner-freebsd-questions@FreeBSD.ORG Sun May 23 03:18:36 2010 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 818BB106564A for ; Sun, 23 May 2010 03:18:36 +0000 (UTC) (envelope-from fbsd1@a1poweruser.com) Received: from mail-03.name-services.com (mail-03.name-services.com [69.64.155.195]) by mx1.freebsd.org (Postfix) with ESMTP id 6A1668FC08 for ; Sun, 23 May 2010 03:18:36 +0000 (UTC) Received: from [10.0.10.3] ([202.69.172.78]) by mail-03.name-services.com with Microsoft SMTPSVC(6.0.3790.3959); Sat, 22 May 2010 20:18:36 -0700 Message-ID: <4BF89E88.70705@a1poweruser.com> Date: Sun, 23 May 2010 11:18:32 +0800 From: Fbsd1 User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: Nerius Landys References: <4BF87A70.1040705@a1poweruser.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 23 May 2010 03:18:36.0839 (UTC) FILETIME=[A213D370:01CAFA26] X-Sender: fbsd1@a1poweruser.com Cc: Amitabh Kant , "questions@freebsd.org" Subject: Re: class.phpmailer.php Warning: date() [function.date]: X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 May 2010 03:18:36 -0000 Nerius Landys wrote: >>> Running Apache-1.3.41_1 PHP5-5.2.12 I did not get this message, which I now >>> get running Apache/2.2.15 (FreeBSD) PHP/5.3.2 >>> Is their way to stop this? >>> >>> 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/Manila' for 'PHT/8.0/no DST' >>> instead in /usr/local/website/mlsax/class.phpmailer.php on line 1406 >>> >>> >> Somewhere on top of your script, set the time zone: >> >> date_default_timezone_set('Asia/Manila'); > > In my opinion a better idea is to address this issue directly in your > php.ini file, which will very likely be /usr/local/etc/php.ini . My > php.ini file has these lines: > > ;;;;;;;;;;;;;;;;;;; > ; Module Settings ; > ;;;;;;;;;;;;;;;;;;; > > [Date] > ; Defines the default timezone used by the date functions > ; http://php.net/date.timezone > date.timezone = "America/Los_Angeles" > > Created php.ini with this and things work again. [Date] ; Defines the default timezone used by the date functions date.timezone = Asia/Manila Thanks