Do not translate dates in feeds. http://mosquito.wordpress.org/view.php?id=924. Reviewed by morganiq.

git-svn-id: https://develop.svn.wordpress.org/trunk@2366 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2005-02-21 04:19:43 +00:00
parent 7ba461a96c
commit f22a3f3283
5 changed files with 9 additions and 9 deletions

View File

@@ -15,14 +15,14 @@ function get_profile($field, $user = false) {
return $wpdb->get_var("SELECT $field FROM $wpdb->users WHERE user_login = '$user'");
}
function mysql2date($dateformatstring, $mysqlstring, $use_b2configmonthsdays = 1) {
function mysql2date($dateformatstring, $mysqlstring, $translate = true) {
global $month, $weekday, $month_abbrev, $weekday_abbrev;
$m = $mysqlstring;
if (empty($m)) {
return false;
}
$i = mktime(substr($m,11,2),substr($m,14,2),substr($m,17,2),substr($m,5,2),substr($m,8,2),substr($m,0,4));
if (!empty($month) && !empty($weekday) && $use_b2configmonthsdays) {
if (!empty($month) && !empty($weekday) && $translate) {
$datemonth = $month[date('m', $i)];
$datemonth_abbrev = $month_abbrev[$datemonth];
$dateweekday = $weekday[date('w', $i)];