get server timezone

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Marcus

    #1

    get server timezone

    Hello,

    As far as I can tell from the php.net documentation and other
    documentation I've seen, date("T") should return the server timezone in
    3-character format, i.e. EST, MST, etc...



    However, when I run date("T") on my machine with php 4.3.10, I get:

    Pacific Daylight Time

    Does anyone know why this is? The above documentation can't be version
    specific to version 5 because I have also seen documentation written a
    few years ago that says:

    Timezone setting of the server in 3-character format, for example, "EST".

    Thanks for all your help.
  • Chuck Anderson

    #2
    Re: get server timezone

    Marcus wrote:
    Hello,
    >
    As far as I can tell from the php.net documentation and other
    documentation I've seen, date("T") should return the server timezone in
    3-character format, i.e. EST, MST, etc...
    >

    >
    However, when I run date("T") on my machine with php 4.3.10, I get:
    >
    Pacific Daylight Time
    >
    Does anyone know why this is? The above documentation can't be version
    specific to version 5 because I have also seen documentation written a
    few years ago that says:
    >
    Timezone setting of the server in 3-character format, for example, "EST".
    >
    Thanks for all your help.
    >
    It's taken from the OS, and that long format is a Windows thing.

    The manual says:
    T Timezone setting of this machine Examples: EST, MDT ...

    --
    *************** **************
    Chuck Anderson • Boulder, CO

    *************** **************

    Comment

    Working...