Ticket #1200: date_i18n.patch
File date_i18n.patch, 1.1 KB (added by , 19 years ago) |
---|
-
wp-includes/functions.php
65 65 $datemonth = $month[date('m', $i)]; 66 66 $dateweekday = $weekday[date('w', $i)]; 67 67 $dateformatstring = ' '.$dateformatstring; 68 $dateformatstring = preg_replace("/([^\\\])D/", "\\1".backslashit( substr($dateweekday, 0, 3)), $dateformatstring);68 $dateformatstring = preg_replace("/([^\\\])D/", "\\1".backslashit($dateweekday_abbrev), $dateformatstring); 69 69 $dateformatstring = preg_replace("/([^\\\])F/", "\\1".backslashit($datemonth), $dateformatstring); 70 70 $dateformatstring = preg_replace("/([^\\\])l/", "\\1".backslashit($dateweekday), $dateformatstring); 71 $dateformatstring = preg_replace("/([^\\\])M/", "\\1".backslashit( substr($datemonth, 0, 3)), $dateformatstring);71 $dateformatstring = preg_replace("/([^\\\])M/", "\\1".backslashit($datemonth_abbrev), $dateformatstring); 72 72 $dateformatstring = substr($dateformatstring, 1, strlen($dateformatstring)-1); 73 73 } 74 74 $j = @date($dateformatstring, $i);