aws: auth: fix date string formatting

* make sure it's always string
This commit is contained in:
Peter Cai 2020-12-31 14:27:27 +08:00
parent 5e0c861524
commit cb41215ec9
1 changed files with 4 additions and 4 deletions

View File

@ -112,8 +112,8 @@ class AwsAuth
@pad(@date.getUTCSeconds()) + "Z"
timeStampYYYYMMDD: ->
@date.getUTCFullYear() +
@pad(@date.getUTCMonth() + 1) +
@pad(@date.getUTCDate())
"#{@date.getUTCFullYear()}" +
"#{@pad(@date.getUTCMonth() + 1)}" +
"#{@pad(@date.getUTCDate())}"
export default AwsAuth
export default AwsAuth