Linux Mint Forum - custom PHP datetime string - wrong TZ

Chat about anything related to Linux Mint

Linux Mint Forum - custom PHP datetime string - wrong TZ

Postby jgmiller on 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?
jgmiller
Level 1
Level 1
 
Posts: 8
Joined: Mon Feb 03, 2014 3:58 pm
Location: Cents, Lëtzebuerg

Linux Mint is funded by ads and donations.
 

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

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

did you refresh your cache here?
What's a landing but a take off in reverse?
My DorkBlog
User avatar
Habitual
Level 8
Level 8
 
Posts: 2004
Joined: Sun Nov 21, 2010 8:31 pm
Location: Slackware

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

Postby jgmiller on 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"
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 xenopeek on 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.
User avatar
xenopeek
Level 21
Level 21
 
Posts: 14561
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands


Return to Chat about Linux Mint

Who is online

Users browsing this forum: No registered users and 4 guests