note 100612 added to function.date-default-timezone-set
| From: | compu-fix at hotmail dot com | Date: | Tue, 26 Oct 2010 21:05:44 +0000 |
| Subject: | note 100612 added to function.date-default-timezone-set | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-173480@lists.php.net to get a copy of this message | ||
Thank you so much TOM S
This worked for me.
$today=@date("dd-mm-yyyy");
==============================================
This is a good script if you know or control your system so that you know that the local TZ in your
OS is correct. Unfortunately, this script still creates an warning message under BSD UNIX.
To fix this, just add an "@" in front of "localtime" as:
$arr = @localtime($iTime);
----
Server IP: 64.71.164.2
Probable Submitter: 189.221.116.121
----
Manual Page -- http://www.php.net/manual/en/function.date-default-timezone-set.php
Edit -- https://master.php.net/note/edit/100612
Del: integrated -- https://master.php.net/note/delete/100612/integrated
Del: useless -- https://master.php.net/note/delete/100612/useless
Del: bad code -- https://master.php.net/note/delete/100612/bad+code
Del: spam -- https://master.php.net/note/delete/100612/spam
Del: non-english -- https://master.php.net/note/delete/100612/non-english
Del: in docs -- https://master.php.net/note/delete/100612/in+docs
Del: other reasons-- https://master.php.net/note/delete/100612
Reject -- https://master.php.net/note/reject/100612
Search -- https://master.php.net/manage/user-notes.php