diff options
Diffstat (limited to 'build/tasks/lib/getTimestamp.js')
-rw-r--r-- | build/tasks/lib/getTimestamp.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/build/tasks/lib/getTimestamp.js b/build/tasks/lib/getTimestamp.js index 4706353c5..bca40bc6b 100644 --- a/build/tasks/lib/getTimestamp.js +++ b/build/tasks/lib/getTimestamp.js @@ -1,9 +1,7 @@ -"use strict"; - -module.exports = function getTimestamp() { +export default function getTimestamp() { const now = new Date(); const hours = now.getHours().toString().padStart( 2, "0" ); const minutes = now.getMinutes().toString().padStart( 2, "0" ); const seconds = now.getSeconds().toString().padStart( 2, "0" ); return `${ hours }:${ minutes }:${ seconds }`; -}; +} |