← Back to team overview

mahara-contributors team mailing list archive

[Bug 1451328] Re: Timezone identifier support for PHP on Windows

 

Here's another thing you could try to check whether these dates formats
are the problems. All the date formats are stored as Mahara language
strings, in the langconfig.php file. You could create a local custom
override file for this, and change each string one at a time.

Just copy your htdocs/lang/en.utf8/langconfig.php file to
htdocs/local/lang/en.utf8/langconfig.php. You'll notice that
"strftimew3cdatetime" is the one that has "%z" in it. Try just dropping
the %z, or changing it to "+12", and see whether user search works.

Similarly, "strftimedate" is the only one that has "%e" in it. Just
change that to "%d" and see if it makes any difference.

-- 
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