@seafile/seafile-calendar 0.0.29-alpha29 → 0.0.29-alpha32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/rc-calendar.js
CHANGED
@@ -7465,12 +7465,15 @@ var _initialiseProps = function _initialiseProps() {
|
|
7465
7465
|
// eslint-disable-next-line no-console
|
7466
7466
|
console.log('cananderStr', cananderStr, format, parts); // eslint-disable-next-line no-console
|
7467
7467
|
var value = _this2.props.value.clone();
|
7468
|
+
value.locale('zh-cn');
|
7468
7469
|
value = value.year(parsed.year()).month(parsed.month()).date(parsed.date()).hour(parsed.hour()).minute(parsed.minute()).second(parsed.second());
|
7469
7470
|
|
7470
7471
|
if (_this2.state.localeFormat === __WEBPACK_IMPORTED_MODULE_9__util__["a" /* DATE_FORMATS */].ISO || _this2.state.localeFormat === __WEBPACK_IMPORTED_MODULE_9__util__["a" /* DATE_FORMATS */].ISOAndTime) {
|
7471
7472
|
console.log('ISO format');
|
7472
7473
|
if (parts[0] && parts[0].length === 4 && (parts[0].slice(0, 3) === '000' || parts[0].slice(0, 2) === '00')) {
|
7473
7474
|
value.year(parts[0]);
|
7475
|
+
// eslint-disable-next-line no-console
|
7476
|
+
console.log('ISO format year', value);
|
7474
7477
|
}
|
7475
7478
|
}
|
7476
7479
|
if (_this2.state.localeFormat === __WEBPACK_IMPORTED_MODULE_9__util__["a" /* DATE_FORMATS */].European || _this2.state.localeFormat === __WEBPACK_IMPORTED_MODULE_9__util__["a" /* DATE_FORMATS */].EuropeanAndTime || _this2.state.localeFormat === __WEBPACK_IMPORTED_MODULE_9__util__["a" /* DATE_FORMATS */].US || _this2.state.localeFormat === __WEBPACK_IMPORTED_MODULE_9__util__["a" /* DATE_FORMATS */].USAndTime || _this2.state.localeFormat === __WEBPACK_IMPORTED_MODULE_9__util__["a" /* DATE_FORMATS */].Germany_Russia_etc || _this2.state.localeFormat === __WEBPACK_IMPORTED_MODULE_9__util__["a" /* DATE_FORMATS */].Germany_Russia_etcAndTime) {
|
@@ -7485,6 +7488,8 @@ var _initialiseProps = function _initialiseProps() {
|
|
7485
7488
|
|
7486
7489
|
if (selectedValue !== value || selectedValue && value && !selectedValue.isSame(value)) {
|
7487
7490
|
_this2.setState({ str: str });
|
7491
|
+
// eslint-disable-next-line no-console
|
7492
|
+
console.log('value', value);
|
7488
7493
|
onChange(value);
|
7489
7494
|
}
|
7490
7495
|
};
|