Browse Source

Return seconds not milliseconds

Spencer Gardner 2 years ago
parent
commit
8b26f16af4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/app.ts

+ 1 - 1
src/app.ts

@@ -3,7 +3,7 @@ import express from "express";
 const app = express();
 
 app.get("/", (req, res) => {
-  res.send(`time:${new Date().getTime()}`);
+  res.send(`time:${Math.round(new Date().getTime() / 1000)}`);
 });
 
 app.listen(3000, "0.0.0.0", () => {});