mirror of
https://github.com/towfiqi/serpbear
synced 2025-06-26 18:15:54 +00:00
Fixed: Date formatting.
This commit is contained in:
@@ -63,8 +63,8 @@ export const addDomain = async (req: NextApiRequest, res: NextApiResponse<Domain
|
||||
const domainData = {
|
||||
domain,
|
||||
slug: domain.replaceAll('.', '-'),
|
||||
lastUpdated: new Date().toString(),
|
||||
added: new Date().toString(),
|
||||
lastUpdated: new Date().toJSON(),
|
||||
added: new Date().toJSON(),
|
||||
};
|
||||
|
||||
try {
|
||||
|
||||
@@ -86,8 +86,8 @@ const addKeywords = async (req: NextApiRequest, res: NextApiResponse<KeywordsGet
|
||||
url: '',
|
||||
tags: JSON.stringify(tagsArray),
|
||||
sticky: false,
|
||||
lastUpdated: new Date().toString(),
|
||||
added: new Date().toString(),
|
||||
lastUpdated: new Date().toJSON(),
|
||||
added: new Date().toJSON(),
|
||||
};
|
||||
keywordsToAdd.push(newKeyword);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user