aws: auth: fix date string formatting
* make sure it's always string
This commit is contained in:
parent
5e0c861524
commit
cb41215ec9
|
@ -112,8 +112,8 @@ class AwsAuth
|
||||||
@pad(@date.getUTCSeconds()) + "Z"
|
@pad(@date.getUTCSeconds()) + "Z"
|
||||||
|
|
||||||
timeStampYYYYMMDD: ->
|
timeStampYYYYMMDD: ->
|
||||||
@date.getUTCFullYear() +
|
"#{@date.getUTCFullYear()}" +
|
||||||
@pad(@date.getUTCMonth() + 1) +
|
"#{@pad(@date.getUTCMonth() + 1)}" +
|
||||||
@pad(@date.getUTCDate())
|
"#{@pad(@date.getUTCDate())}"
|
||||||
|
|
||||||
export default AwsAuth
|
export default AwsAuth
|
||||||
|
|
Loading…
Reference in a new issue