Skip to content

Commit

Permalink
add timezone
Browse files Browse the repository at this point in the history
  • Loading branch information
z-houbin committed Oct 11, 2021
1 parent 3332d4a commit 4d9554e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ moment.locale('zh-cn');

async function main() {
let zipName = core.getInput('name') || 'upload'
zipName += '-' + moment().format('YYYY-MM-DD-HH-mm-ss') + '.zip';
zipName += '-' + moment().utcOffset(8).format('YYYY-MM-DD-HH-mm-ss') + '.zip';
core.info(zipName)

let folder = core.getInput('path')
Expand Down

0 comments on commit 4d9554e

Please sign in to comment.