|
@@ -318,7 +318,7 @@ abstract class Zend_Date_DateObject {
|
|
|
// standard). However, this is not desired, so replacing
|
|
// standard). However, this is not desired, so replacing
|
|
|
// all occurrences of "o" not preceded by a backslash
|
|
// all occurrences of "o" not preceded by a backslash
|
|
|
// with "Y"
|
|
// with "Y"
|
|
|
- $format = preg_replace('/(?<!\\\\)o\b/', 'Y', $format);
|
|
|
|
|
|
|
+ $format = preg_replace('/(?<!\\\\)o/', 'Y', $format);
|
|
|
$result = ($gmt) ? @gmdate($format, $timestamp) : @date($format, $timestamp);
|
|
$result = ($gmt) ? @gmdate($format, $timestamp) : @date($format, $timestamp);
|
|
|
date_default_timezone_set($oldzone);
|
|
date_default_timezone_set($oldzone);
|
|
|
return $result;
|
|
return $result;
|