Fix locale

This commit is contained in:
CrazyMax 2020-10-25 15:11:45 +01:00
parent 82e48e1f2e
commit 7df590fa0d
No known key found for this signature in database
GPG Key ID: 3248E46B6BB8C7F7
3 changed files with 5 additions and 5 deletions

View File

@ -203,16 +203,16 @@ describe('tags and labels', () => {
images: ['user/app'],
tagSchedule: `{{date 'YYYYMMDD-HHmmss'}}`
} as Inputs,
'20200110-013000',
'20200110-003000',
[
'user/app:20200110-013000'
'user/app:20200110-003000'
],
[
"org.opencontainers.image.title=Hello-World",
"org.opencontainers.image.description=This your first repo!",
"org.opencontainers.image.url=https://github.com/octocat/Hello-World",
"org.opencontainers.image.source=https://github.com/octocat/Hello-World.git",
"org.opencontainers.image.version=20200110-013000",
"org.opencontainers.image.version=20200110-003000",
"org.opencontainers.image.created=2020-01-10T00:30:00.000Z",
"org.opencontainers.image.revision=90dd6032fac8bda1b6c4436a2e65de27961ed071",
"org.opencontainers.image.licenses=MIT"

2
dist/index.js generated vendored
View File

@ -259,7 +259,7 @@ class Meta {
const currentDate = this.date;
return {
date: function (format) {
return moment(currentDate).format(format);
return moment(currentDate).utc().format(format);
}
};
}

View File

@ -103,7 +103,7 @@ export class Meta {
const currentDate = this.date;
return {
date: function (format) {
return moment(currentDate).format(format);
return moment(currentDate).utc().format(format);
}
};
}