Skip to content

Commit

Permalink
refactor(src): update sys/ping endpoint to use Date.now() when determ…
Browse files Browse the repository at this point in the history
…ining date
  • Loading branch information
Xunnamius committed Jun 1, 2023
1 parent 534f51b commit fed61eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/api/sys/ping.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default withSysMiddleware(
async (req, res) => {
const { name = 'Mr. World' } = req.query;
sendHttpOk(res, {
message: `Hello to ${name} at ${new Date().toLocaleString()}`
message: `Hello to ${name} at ${new Date(Date.now()).toLocaleString()}`
});
},
{
Expand Down

0 comments on commit fed61eb

Please sign in to comment.