Revision
2828
Author
cimorrison
Date
2014-04-02 17:17:40 +0000 (Wed, 02 Apr 2014)

Log Message

Added an alternative for the %e modifier for strftime() when running on Windows.  See also SF Support Requests #521

Modified Paths

Diff

Modified: mrbs/trunk/web/language.inc (2827 => 2828)


--- mrbs/trunk/web/language.inc	2014-03-17 15:55:24 UTC (rev 2827)
+++ mrbs/trunk/web/language.inc	2014-04-02 17:17:40 UTC (rev 2828)
@@ -1221,12 +1221,13 @@
     $format = str_replace("%R", "%H:%M", $format);
     $format = str_replace("%P", "%p", $format);
     $format = str_replace("%l", "%I", $format);
+    $format = str_replace("%e", "%#d", $format);
   }
   
   // %p doesn't actually work in some locales, we have to patch it up ourselves
   if (preg_match('/%p/', $format))
   {
-    $ampm = strftime('%p', $time);  // Don't relace the %p with the $strftime_format variable!!
+    $ampm = strftime('%p', $time);  // Don't replace the %p with the $strftime_format variable!!
     if ($ampm == '')
     {
       $ampm = date('a', $time);