mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-23 01:57:50 +08:00
@@ -4,6 +4,7 @@ Yii Framework 2 Change Log
|
|||||||
2.0.0 under development
|
2.0.0 under development
|
||||||
-----------------------
|
-----------------------
|
||||||
|
|
||||||
|
- Bug #5260: `yii\i18n\Formatter::decimalSeparator` and `yii\i18n\Formatter::thousandSeparator` where not configurable when intl is not installed (execut, cebe)
|
||||||
- Bug: Date and time formatting now assumes UTC as the timezone for input dates unless a timezone is explicitly given (cebe)
|
- Bug: Date and time formatting now assumes UTC as the timezone for input dates unless a timezone is explicitly given (cebe)
|
||||||
- Enh #4275: Added `removeChildren()` to `yii\rbac\ManagerInterface` and implementations (samdark)
|
- Enh #4275: Added `removeChildren()` to `yii\rbac\ManagerInterface` and implementations (samdark)
|
||||||
|
|
||||||
|
|||||||
@@ -208,10 +208,14 @@ class Formatter extends Component
|
|||||||
}
|
}
|
||||||
$this->_intlLoaded = extension_loaded('intl');
|
$this->_intlLoaded = extension_loaded('intl');
|
||||||
if (!$this->_intlLoaded) {
|
if (!$this->_intlLoaded) {
|
||||||
|
if ($this->decimalSeparator === null) {
|
||||||
$this->decimalSeparator = '.';
|
$this->decimalSeparator = '.';
|
||||||
|
}
|
||||||
|
if ($this->thousandSeparator === null) {
|
||||||
$this->thousandSeparator = ',';
|
$this->thousandSeparator = ',';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Formats the value based on the given format type.
|
* Formats the value based on the given format type.
|
||||||
|
|||||||
Reference in New Issue
Block a user