Skip to content

Commit c0a67ed

Browse files
回滚无效修改代码
1 parent 4499240 commit c0a67ed

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/dashboard/Data/Jobs/JobEdit.react.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class JobEdit extends React.Component {
3333
schedule.job_schedule.jobName = changes.job;
3434
}
3535
if (!changes.immediate && changes.runAt) {
36-
schedule.job_schedule.startAfter = changes.runAt.toLocaleDateString();
36+
schedule.job_schedule.startAfter = changes.runAt.toISOString();
3737
}
3838
if (changes.repeat) {
3939
let hour = changes.repeatStartHour;

src/lib/stores/JobsStore.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ function JobsStore(state, action) {
3737
return Parse._request('POST', path, action.schedule, {useMasterKey: true}).then((result) => {
3838
let { ...schedule } = action.schedule.job_schedule;
3939
schedule.objectId = result.objectId;
40-
schedule.startAfter = schedule.startAfter || new Date().toLocaleDateString();
40+
schedule.startAfter = schedule.startAfter || new Date().toISOString();
4141
return state.set('jobs', state.get('jobs').push(schedule));
4242
});
4343
case ActionTypes.EDIT:

0 commit comments

Comments
 (0)