Skip to content

Commit

Permalink
Automate setting build date instead of setting it manually
Browse files Browse the repository at this point in the history
  • Loading branch information
SegiH committed Oct 4, 2024
1 parent cc24b6a commit 259c5f4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion public/build-info.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"buildDate": "2024-10-03T03:49:25.269Z"
"buildDate": "2024-10-04T04:07:09.438Z"
}
2 changes: 1 addition & 1 deletion src/app/data-context.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -848,7 +848,7 @@ const DataProvider = ({ children }) => {
.then((data) => {
setBuildDate(getFormattedDate(data.buildDate.substring(0,10), "-"));
});
}, []);
}, []);

const routeList = {
WatchList: {
Expand Down
2 changes: 1 addition & 1 deletion writeBuildDate.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ const path = require('path');
const buildDate = new Date().toISOString();
const outputPath = path.join(__dirname, 'public', 'build-info.json');

fs.writeFileSync(outputPath, JSON.stringify({ buildDate }, null, 2));
fs.writeFileSync(outputPath, JSON.stringify({ buildDate }, null, 2));

0 comments on commit 259c5f4

Please sign in to comment.