Linux Mint Forum - custom PHP datetime string - wrong TZ

Chat about anything related to Linux Mint
jgmiller
Level 1
Level 1
Posts: 8
Joined: Mon Feb 03, 2014 3:58 pm
Location: Cents, Lëtzebuerg

Linux Mint Forum - custom PHP datetime string - wrong TZ

Postby jgmiller » Thu Feb 20, 2014 7:32 pm

In my profile, User Control Panel -> Board Preferences -> Edit global settings -> My TimeZone, I have correctly set the timezone to CET and that works as expected for all the preset formats available.

And it does say at the bottom of the page " All times are UTC + 1 hour".

But after changing the display date time format from preset to PHP custom format string specified by "Y-m-d H:i:s\h T", everything is being shewn with a GMT time zone designation even though the time is the correct value for CET, eg

"It is currently 2014-02-14 23:16:37h GMT"

when it should say

"It is currently 2014-02-14 23:16:37h CET"

Is this a bug or do I need to change the PHP custom format string to get it to shew the time zone as CET rather than GMT?

User avatar
Habitual
Level 12
Level 12
Posts: 4203
Joined: Sun Nov 21, 2010 8:31 pm
Location: Youngstown, Ohio

Re: Linux Mint Forum - custom PHP datetime string - wrong TZ

Postby Habitual » Thu Feb 20, 2014 8:20 pm

did you refresh your cache here?
Windows assumes you're an idiot.
Linux demands proof of it.

jgmiller
Level 1
Level 1
Posts: 8
Joined: Mon Feb 03, 2014 3:58 pm
Location: Cents, Lëtzebuerg

Re: Linux Mint Forum - custom PHP datetime string - wrong TZ

Postby jgmiller » Fri Feb 21, 2014 2:08 pm

Habitual wrote:did you refresh your cache here?


My cache here is well and truly refreshed.

I have logged in an out of the forum several times since I changed to the custom string about 2 weeks ago and the time zone remains as GMT even though the time value is the correct CET value.

"All times are UTC + 1 hour" but "It is currently 2014-02-21 19:07:51h GMT"

User avatar
xenopeek
Level 23
Level 23
Posts: 19379
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Re: Linux Mint Forum - custom PHP datetime string - wrong TZ

Postby xenopeek » Wed Feb 26, 2014 11:15 am

This is a known issue in phpBB: https://www.phpbb.com/bugs/ascraeus/tic ... t_id=19645. As a workaround, either just drop the "T" from your date string or put in literal text with your timezone.
Image


Return to “Chat about Linux Mint”

Who is online

Users browsing this forum: Fred Barclay, notned, sarge816 and 2 guests