Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #5635

Re: Date/Time warning

Message-ID <2984934.dbgypaU67u@PointedEars.de> (permalink)
From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Organization PointedEars Software (PES)
Date 2012-04-21 19:09 +0200
Subject Re: Date/Time warning
Newsgroups comp.lang.php
References <2012042008442967926-info@stconinccom> <jmr0pa$9rl$1@ss408.t-com.hr> <2012042009124657118-info@stconinccom> <jmr2p7$d0e$1@ss408.t-com.hr>
Followup-To comp.lang.php

Followups directed to: comp.lang.php

Show all headers | View raw


Goran wrote:

> On 20.4.2012 9:12, Torsten Jørgensen wrote:
>> On 2012-04-20 06:47:06 +0000, Goran said:
>>> On 20.4.2012 8:44, Torsten Jørgensen 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.
>>> Probably you should configure default time zone in php.ini.
>> 
>> Thankyou, cool - but I can't find php.ini. Could you give me
>> a little more help. I should probably write something like
>> Europe/Copenhagen, but what is the directive exactly?
> 
> Which os you are using? If its linux try "locate php.ini"

locate(1) will not yield useful results unless updatedb(1) had been run on 
that system first and the directories in question are included in the 
indexing and the user running updatedb(1) has had permission to read the 
pertinent directories and files.  There is no requirement that – assuming 
the findutils are even installed – updatedb(1) be run as a root cron job on 
a Linux-based system.  If updatedb(1) had been run, locate(1) may very well 
yield several paths for php.ini as each server version and PHP variant (in 
particular (PHP Apache module and PHP CLI) likely will have its own 
configuration.

Bottom line: In 9 of 10 cases the output of `locate php.ini' is completely 
useless.

When in doubt, call phpinfo() in the *same* PHP program first.  It tells you 
where php.ini for that program is located and what *other* configuration 
files are considered that may very well contain the setting in question 
(which is especially common on Linux-based systems because of convenient 
package management for PHP extensions), so as to avoid modifying the wrong 
file or duplicating settings (with adverse effect on the duplicate or the 
duplicated setting).


PointedEars
-- 
var bugRiddenCrashPronePieceOfJunk = (
    navigator.userAgent.indexOf('MSIE 5') != -1
    && navigator.userAgent.indexOf('Mac') != -1
)  // Plone, register_function.js:16

Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


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