Commit 582d4926 by fukai

修正时区设置

parent 3798764b
......@@ -11,8 +11,21 @@ const Provider = require('react-redux').Provider;
const configureStore = require('../store/configureStore');
const store = configureStore()
const customLocale = {
timezoneOffset: 8 * 60,
firstDayOfWeek: 1,
minimalDaysInFirstWeek: 1,
};
//修正时区设置
let newlocale = {...enUS}
if (newlocale.DatePicker) {
newlocale.DatePicker = { ...newlocale.DatePicker, ...customLocale };
}
ReactDOM.render(
<LocaleProvider locale={enUS}>
<LocaleProvider locale={newlocale}>
<Provider store={store}>
<Routes history={hashHistory} />
</Provider>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment