Time Zone

Home \ forums/topic \ Time Zone
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #162
    norburban
    Participant

    The time displayed in the server’s file system reflects the current time zone, but listing in both the module and pro plugin seems to be 1 hour earlier.

    Where in the code might I be able to add 1 hr to the time stamp, or specify a time zone?

    #1270
    Michael Gilkes
    Keymaster

    @norburban. Thanks for using my plugin and for posting. I use the PHP stat function (mtime) to get the time data. You can specify the time zone by changing the ‘timeformat’ in either the article or the Plugin Manager. See the PHP date manual for full instructions.

    The default value for timeformat is ‘Y-m-d H:i:s’. To get time zone information, you can use ‘Y-m-d H:i:s e’ or ‘Y-m-d H:i:s T’ or maybe ‘Y-m-d H:i:s O’

    Hope this helps.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Time Zone’ is closed to new replies.