mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #41070
[Bug 1670885] [NEW] format_date function returns false (Windows)
Public bug reported:
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...
** Affects: mahara
Importance: Undecided
Assignee: Gregor Anželj (gregor-anzelj)
Status: New
** Changed in: mahara
Assignee: (unassigned) => Gregor Anželj (gregor-anzelj)
--
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
Follow ups