Merge pull request 'fix: Make statusModel created_at fields be ISO 8601 strings' (#9929) from fruye/calckey:53y-ago into develop

Reviewed-on: https://codeberg.org/calckey/calckey/pulls/9929
This commit is contained in:
Kainoa Kanter 2023-04-27 20:07:13 +00:00
commit 0b826cf267

View File

@ -388,7 +388,7 @@ export function statusModel(
emojis: MastodonEntity.Emoji[], emojis: MastodonEntity.Emoji[],
content: string, content: string,
) { ) {
const now = Math.floor(new Date().getTime() / 1000); const now = new Date().toISOString();
return { return {
id: "9atm5frjhb", id: "9atm5frjhb",
uri: "https://http.cat/404", // "" uri: "https://http.cat/404", // ""