From owner-freebsd-questions@FreeBSD.ORG Sun May 23 01:56:10 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 7EB83106564A for ; Sun, 23 May 2010 01:56:10 +0000 (UTC) (envelope-from nlandys@gmail.com) Received: from mail-qy0-f181.google.com (mail-qy0-f181.google.com [209.85.221.181]) by mx1.freebsd.org (Postfix) with ESMTP id 37A048FC14 for ; Sun, 23 May 2010 01:56:09 +0000 (UTC) Received: by qyk11 with SMTP id 11so3948800qyk.13 for ; Sat, 22 May 2010 18:56:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=bhv10itIgDP02IJmQv14qBdOlnxHYq0vUuVsCnqVXZk=; b=tYlESGdaNbaC/wwhTeYtqxPfoy1e4YcDylyWI+IuRtkwr9r3p7jEJ+jMejuqsLENVC WGd9EWZxLz2Nirpqb5pMmqSplZWNbOSUCL5TRa8eAyqxFVydbDo4cut81B1APHl/0C1k tl/lXJrf+dWKqXyeGv0NNo5JraoQX02bh3bpI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=oz8zpHLb7Gb1mqB+ec7J4xd3Jw4IOxjP14F7/ozNb/+FuKyRB/9FqoDfcmmUmoAX02 xUUI4670d3k5gFcEqIbnKr1YbEoR0Fn6w7wrCZEqLzFiWJliz2PgdmmFZLRUelLU0DhK i9eeEQGVDvV6kEqf7NWXXTuADRXeV/39DyV0I= MIME-Version: 1.0 Received: by 10.229.191.3 with SMTP id dk3mr797599qcb.25.1274579769446; Sat, 22 May 2010 18:56:09 -0700 (PDT) Received: by 10.229.250.199 with HTTP; Sat, 22 May 2010 18:56:09 -0700 (PDT) In-Reply-To: References: <4BF87A70.1040705@a1poweruser.com> Date: Sat, 22 May 2010 18:56:09 -0700 Message-ID: From: Nerius Landys To: Amitabh Kant Content-Type: text/plain; charset=ISO-8859-1 Cc: "questions@freebsd.org" , Fbsd1 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 01:56:10 -0000 >> 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"