mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #26755
[Bug 1451328] Re: Timezone identifier support for PHP on Windows
Feel free to remove my above comment. I've had a chance to look at the
issue. For me it appears the best way to go with the %z is to hard code
the UTC offset and update it every time daylight savings starts and
ends. As you saidthe database is not affected by the format but the
Leap2A export is. Just removing the %z from the langconfig.php file
won't work because during the export process a colon is added before the
penultimate character, so simply removing the %z will leave you with two
colons before the seconds, e.g. <published>2015-05-01T16:32::55>.
%e to %d was a quick fix and the reason why the last login date (and
other dates) weren't showing is because %l (lower case L) is also not
Windows compatible. Interestingly it's not mentioned in the php manual's
strftime page but like %e can be replaced with %I (upper case i) giving
the same but with leading zero rather than a space.
I guess in the future it would be good if Windows compatible parameters
could be used in Mahara and a small formatting fix like the one in
Moodle's calendar structure.php page to remove the less than pretty
leading zero. (I guess ideally Windows parameters would work/work the
same as Linux but I'm thinking I'd have more luck here). :D
--
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1451328
Title:
Timezone identifier support for PHP on Windows
Status in Mahara ePortfolio:
Triaged
Bug description:
Last login column for users search is blank (and does not sort in the
correct order) also the warning saying 'PHP on your website host does
not return a useful value for the timezone identifier (%z) .....' on
the admin page is not a fix for the problem and unfortunately some of
us are not able to change from hosting on a Windows server.
I am wondering if Mahara is using strftime resulting in the time zone
identifier returning 'New Zealand Standard Time' in Windows rather
than Linux' +1200 is part of the problem.
I have searched the forums but not found a fix.
Server: Windows 2012 R2
Mahara version: 15.04.0 and 1.9.4
IIS: 8.5 (both servers) also had same problem on a WAMP environment
PHP version: 5.5.3 and 5.5.8
MySQL version: 5.5.40 on both servers
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1451328/+subscriptions
References