← Back to team overview

mahara-contributors team mailing list archive

[Bug 771597] Re: Leap2A Export has no dates

 

Ok, nothing wrong with the database content, and the Apache error log
didn't have anything useful.

However, I think I know what the problem is.

What is boils down to Mahara on a Windows host doesn't play nicely with
the format string used by the format_date() function (returns false).
This in turn means you end up with the dates being ':' as in the LEAP2A
file attached.

The default format string is '%Y-%m-%dT%T%z' - the %T and %z parts do
not seem to work on Windows (PHP 5.3.6).

There is a possible fix for this - instead of using strftime(), use
date('c', $date) as this returns the same format for Linux and Windows
hosts.

This is a change to one of the core parts of Mahara though, and will
need a lot of testing to make sure the change doesn't break other
things.

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
https://bugs.launchpad.net/bugs/771597

Title:
  Leap2A Export has no dates

Status in Mahara ePortfolio:
  In Progress

Bug description:
  After installing 1.3.5 all exports have had missing dates. Tags such
  as <updated> and <published> come out like the following:

  <updated>:</updated>
  <published>:</published>

  I've attached an example export.


References