scheduledAtをISO8601で指定できるように
Signed-off-by: mattyatea <mattyacocacora0@gmail.com>
This commit is contained in:
parent
271c872c97
commit
380c8c3283
3 changed files with 3 additions and 7 deletions
|
|
@ -43,12 +43,12 @@ if ( props.modelValue && props.modelValue.scheduledAt) {
|
|||
|
||||
function get() {
|
||||
const calcAt = () => {
|
||||
return new Date(`${atDate.value} ${atTime.value}`).getTime();
|
||||
return new Date(`${atDate.value}T${atTime.value}`).toISOString();
|
||||
};
|
||||
|
||||
return {
|
||||
...(
|
||||
props.modelValue ? { scheduledAt: calcAt() } : {}
|
||||
props.modelValue ? { scheduledAt: calcAt() } : ''
|
||||
),
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue