Re: [PHP-INSTALL] timezone

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Read the documentation for the function:

date_default_timezone_get

It obtains the date/time from one of _4_ different 'places'.  If none are successful the 
default UTC date/time are returned.

I would venture to guess that your timezone &/or date/time format are getting set 
somewhere in your php.ini file

Larr.

--- In php-objects@xxxxxxxxxxxxxxx, kranthi <kranthi117@...> wrote:
>
> thanks for the information.that saved me a lot of head-scratching.
> 
> var_dump(date_default_timezone_get()); is giving me string(13)
> "Asia/Calcutta"
> 
> yet ter are two things which i dont understand.
> 
> 1. TZ env variable is not set on my computer(debian OS). where did the
> timezone come from
>  "if supported and allowed by the OS" debian allows the so
> called querying while windows dosent. is this true???
> 
> 2. How am i getting time as 03:01 AM, 13/12/08 IST when actually it is 09:31
> PM, 12/12/08 IST ???
> 
> Kranthi.
> 
> 
> [Non-text portions of this message have been removed]
>




[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux