|
|
@@ -152,7 +152,7 @@ class Zend_Date extends Zend_Date_DateObject
|
|
|
$locale = $date;
|
|
|
$date = null;
|
|
|
$part = null;
|
|
|
- } else if (($part !== null) and !defined($part) and Zend_Locale::isLocale($date, true, false)) {
|
|
|
+ } else if (($part !== null) and !defined($part) and Zend_Locale::isLocale($part, true, false)) {
|
|
|
$locale = $part;
|
|
|
$part = null;
|
|
|
}
|
|
|
@@ -2838,9 +2838,9 @@ class Zend_Date extends Zend_Date_DateObject
|
|
|
$date = $date->get('d.M.Y');
|
|
|
} else {
|
|
|
if (is_array($date)) {
|
|
|
- if ((isset($time['year']) === true) or (isset($time['month']) === true) or
|
|
|
- (isset($time['day']) === true)) {
|
|
|
- $parsed = $time;
|
|
|
+ if ((isset($date['year']) === true) or (isset($date['month']) === true) or
|
|
|
+ (isset($date['day']) === true)) {
|
|
|
+ $parsed = $date;
|
|
|
} else {
|
|
|
require_once 'Zend/Date/Exception.php';
|
|
|
throw new Zend_Date_Exception("no day,month or year given in array");
|
|
|
@@ -4383,7 +4383,7 @@ class Zend_Date extends Zend_Date_DateObject
|
|
|
*/
|
|
|
public function subMilliSecond($milli = null, $precision = null)
|
|
|
{
|
|
|
- return $this->addMilliSecond(0 - $milli);
|
|
|
+ return $this->addMilliSecond(0 - $milli, $precision);
|
|
|
}
|
|
|
|
|
|
/**
|