Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #5582
| From | "Álvaro G. Vicario" <alvaro.NOSPAMTHANX@demogracia.com.invalid> |
|---|---|
| Newsgroups | comp.lang.php |
| Subject | Re: Date/Time warning |
| Date | 2012-04-20 09:59 +0200 |
| Organization | http://alvaro.es/ |
| Message-ID | <jmr508$k77$1@dont-email.me> (permalink) |
| References | <2012042008442967926-info@stconinccom> |
El 20/04/2012 8:44, Torsten Jørgensen escribió/wrote: > I get a warning about timezones when using date(). Is there something > new in PHP, I've > just migrated from one mac to another. I wouldn't say it's new (it's been around for several years). You've carefully ignored the error message but it contains a complete explanation of what you must do, something like this: Warning: date() [http://es.php.net/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 'Europe/Paris' for '2.0/DST' instead Always read error messages: they are there to help, not to annoy, and they normally contain useful info. P.S. You can find the path for your "php.ini" file with this script: <?php phpinfo(); -- -- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain -- Mi sitio sobre programación web: http://borrame.com -- Mi web de humor satinado: http://www.demogracia.com --
Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Date/Time warning Torsten Jørgensen <info@stconinc.com> - 2012-04-20 08:44 +0200
Re: Date/Time warning Goran <goran@nospam.com> - 2012-04-20 08:47 +0200
Re: Date/Time warning Torsten Jørgensen <info@stconinc.com> - 2012-04-20 09:12 +0200
Re: Date/Time warning Goran <goran@nospam.com> - 2012-04-20 09:21 +0200
Re: Date/Time warning Torsten Jørgensen <info@stconinc.com> - 2012-04-20 09:49 +0200
Re: Date/Time warning Jerry Stuckle <jstucklex@attglobal.net> - 2012-04-20 08:13 -0400
Re: Date/Time warning Tim Streater <timstreater@greenbee.net> - 2012-04-20 15:43 +0100
Re: Date/Time warning Jerry Stuckle <jstucklex@attglobal.net> - 2012-04-20 14:21 -0400
Re: Date/Time warning Tim Streater <timstreater@greenbee.net> - 2012-04-20 20:31 +0100
Re: Date/Time warning Denis McMahon <denismfmcmahon@gmail.com> - 2012-04-20 15:03 +0000
Re: Date/Time warning Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-04-21 19:09 +0200
Re: Date/Time warning Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-04-21 18:56 +0200
Re: Date/Time warning "Álvaro G. Vicario" <alvaro.NOSPAMTHANX@demogracia.com.invalid> - 2012-04-20 09:59 +0200
Re: Date/Time warning Tim Streater <timstreater@greenbee.net> - 2012-04-20 10:23 +0100
Re: Date/Time warning Torsten Jørgensen <info@stconinc.com> - 2012-04-20 11:27 +0200
csiph-web