summaryrefslogtreecommitdiffstats
path: root/server/lib/shell.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/lib/shell.js')
-rw-r--r--server/lib/shell.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/lib/shell.js b/server/lib/shell.js
index 77c5dcc..8aa4cf2 100644
--- a/server/lib/shell.js
+++ b/server/lib/shell.js
@@ -57,7 +57,7 @@ module.exports = {
// Copy and rename the ipxe file to the __appdir/ipxe/builds/<date> dir.
sendToLog('Copying ipxe file(s) ...\n', 'primary')
const date = new Date()
- const timestamp = date.getFullYear() + '-' + (date.getMonth() + 1) + '-' + date.getDate() + '_' + date.getHours() + '-' + date.getMinutes() + '-' + date.getSeconds()
+ const timestamp = date.getFullYear() + '-' + ('0' + (date.getMonth() + 1)).slice(-2) + '-' + ('0' + date.getDate()).slice(-2) + '_' + ('0' + date.getHours()).slice(-2) + '-' + ('0' + date.getMinutes()).slice(-2) + '-' + ('0' + date.getSeconds()).slice(-2)
for (let buildtarget of buildParameters) {
const target = buildtarget.split('/')