mirror of
https://github.com/elk-zone/elk.git
synced 2024-11-15 13:30:05 +00:00
feat: convert datetime string into ISO 8601 datetime string
ref. statuses API methods - Mastodon documentation - https://docs.joinmastodon.org/methods/statuses/#form-data-parameters
This commit is contained in:
parent
4a0345a059
commit
9fabaad1ec
1 changed files with 4 additions and 0 deletions
|
@ -86,6 +86,10 @@ export function usePublish(options: {
|
|||
poll = { ...draftItem.value.params.poll, options }
|
||||
}
|
||||
|
||||
if (draft.value.params.scheduledAt)
|
||||
// TODO: return type become non `Status` object now! what to do?
|
||||
draft.value.params.scheduledAt = new Date(draft.value.params.scheduledAt).toISOString()
|
||||
|
||||
const payload = {
|
||||
...draftItem.value.params,
|
||||
spoilerText: publishSpoilerText.value,
|
||||
|
|
Loading…
Reference in a new issue