While working on MDL-49974 It was observed that %l is not supported and unit test was failing because of it.
Also %P is supported which means lowercase in linux and uppercase in windows.
http://php.net/manual/en/function.strftime.php
https://msdn.microsoft.com/en-us/library/fe06s4ak.aspx
stronk7 suggested,
A) If we want to allow %k, %l and other non-zero formatters... then we'll need to hack timestamp_to_date_string() badly with hacks like the $fixday and $fixhour ones.
B) If we don't want to allow those formatters... then IMO it would be great to ban them officially (docs required). An surely that same function can be also a good place to, with debugging enabled, perform a simple regexp looking for invalid ones and to warn about them.
- has a non-specific relationship to
-
MDL-49974 Unit test failure under Windows in moodlelib_test.php
- Closed