fix version date

This commit is contained in:
quoije
2025-02-05 19:25:38 -05:00
parent 0c1f148fe5
commit 4a9648bd70
3 changed files with 25 additions and 1 deletions
+2 -1
View File
@@ -1,6 +1,7 @@
const axios = require("axios");
const express = require("express");
const router = express.Router();
const moment = require('moment-timezone');
// Fetch the latest commit from a GitHub repository
async function fetchLatestCommitFromGitHub() {
@@ -41,7 +42,7 @@ async function fetchLatestCommitFromGitHub() {
version: (latestCommit.sha).substring(0,5),
message: latestCommit.message,
author: latestCommit.author,
date: latestCommit.date,
date: moment(latestCommit.date).tz('America/New_York').format('YYYY-MM-DD HH:mm:ss'),
});
} catch (error) {
console.error("Error fetching latest commit:", error);