Make class's default time now to fix date jump bug
This commit is contained in:
parent
f85c21ef3c
commit
ff267cc32c
|
@ -259,7 +259,11 @@ function InstructorClassEditor(props) {
|
||||||
<label>Time and Date</label>
|
<label>Time and Date</label>
|
||||||
<Datetime
|
<Datetime
|
||||||
timeConstraints={{ minutes: { step: 15 } }}
|
timeConstraints={{ minutes: { step: 15 } }}
|
||||||
value={ input.datetime ? moment.utc(input.datetime).tz('America/Edmonton') : (new Date()).setMinutes(0) }
|
value={ input.datetime ?
|
||||||
|
moment.utc(input.datetime).tz('America/Edmonton')
|
||||||
|
:
|
||||||
|
moment().tz('America/Edmonton').set({ minute: 0 })
|
||||||
|
}
|
||||||
onChange={handleDatetime}
|
onChange={handleDatetime}
|
||||||
input={false}
|
input={false}
|
||||||
/>
|
/>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user