← Back to team overview

mahara-contributors team mailing list archive

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

 

Patch submitted: https://reviews.mahara.org/#/c/7509/

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

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