Fixed: Date formatting.

This commit is contained in:
Towfiq
2022-11-27 18:30:22 +06:00
parent 813698125e
commit a9c95e9881
2 changed files with 4 additions and 4 deletions

View File

@@ -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 {

View File

@@ -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);
});