Add tests result
This commit is contained in:
parent
853c141910
commit
9e4fcbf04e
111 changed files with 1078 additions and 77 deletions
|
|
@ -343,10 +343,12 @@ const save = async () => {
|
|||
saving.value = true;
|
||||
try {
|
||||
// Convert local datetime to ISO string to preserve timezone
|
||||
const payload = { ...form.value };
|
||||
const payload: any = { ...form.value };
|
||||
if (payload.published_at) {
|
||||
const localDate = new Date(payload.published_at.replace(' ', 'T'));
|
||||
payload.published_at = localDate.toISOString();
|
||||
} else {
|
||||
delete payload.published_at;
|
||||
}
|
||||
|
||||
if (editing.value) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue