Browse Source

Added tz offset

Spencer Gardner 2 years ago
parent
commit
0021ffd5e0
1 changed files with 5 additions and 1 deletions
  1. 5 1
      src/app.ts

+ 5 - 1
src/app.ts

@@ -3,7 +3,11 @@ import express from "express";
 const app = express();
 
 app.get("/", (req, res) => {
-  res.send(`time:${Math.round(new Date().getTime() / 1000)}`);
+  const lines = [
+    `time:${Math.round(new Date().getTime() / 1000)}`,
+     `tz:-6`
+  ]
+  res.send(lines.join('\n'));
 });
 
 app.listen(3000, "0.0.0.0", () => {});