← Back to team overview

mahara-contributors team mailing list archive

[Bug 1670885] Re: format_date function returns false (Windows)

 

When testing this patch, it needs to be checked that the date display
for date and time is still the same as in 16.10. The best to check is in
the forums as a forum entry contains the date and the time.

** Changed in: mahara
       Status: New => In Progress

** Changed in: mahara
   Importance: Undecided => Medium

** Changed in: mahara
    Milestone: None => 17.04.0

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

Title:
  format_date function returns false (Windows)

Status in Mahara:
  In Progress

Bug description:
  format_date() function uses undelying strftime function.

  It is known that %e modifier is not supported. However when I use
  format_date() function with the following formatkey 'strftimedatetime'
  which translates to '%%d %%B %%Y, %%l:%%M %%p' (for English language)
  the functon returns false.

  According to http://stackoverflow.com/questions/12362179/why-does-
  strftime-on-windows-returns-false-im-not-using-e the modifier %l is
  the problematic one. If it is changed to %#I (under Windows) then it
  works as expected...

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1670885/+subscriptions


References