Skip to content

Commit

Permalink
Date months are zero indexed apparently
Browse files Browse the repository at this point in the history
  • Loading branch information
nick-thompson committed Nov 16, 2023
1 parent 0b4ee81 commit ce37c3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { execSync } from 'node:child_process'

const currentCommit = execSync("git rev-parse --short HEAD").toString();
const date = new Date();
const dateString = `${date.getFullYear()}.${date.getMonth()}.${date.getDate()}`;
const dateString = `${date.getFullYear()}.${date.getMonth() + 1}.${date.getDate()}`;


// https://vitejs.dev/config/
Expand Down

0 comments on commit ce37c3f

Please sign in to comment.