Use the date command to output standard ISO8601 UTC time.
This commit is contained in:
parent
35efcdf74b
commit
a221ef7e97
|
@ -91,9 +91,9 @@ _ali_signature_rpc() {
|
||||||
echo -n "$_sign_str" | openssl sha1 -hmac "$_AliAccessKeySecret&" -binary | openssl base64 -e
|
echo -n "$_sign_str" | openssl sha1 -hmac "$_AliAccessKeySecret&" -binary | openssl base64 -e
|
||||||
}
|
}
|
||||||
|
|
||||||
_ali_timestamp_rpc() {
|
_aliapi_timestamp_rpc() {
|
||||||
# ISO8601 UTC
|
# ISO8601 UTC
|
||||||
date -u "+%FT%TZ"
|
date -u -Iseconds
|
||||||
}
|
}
|
||||||
|
|
||||||
_ali_signature_nonce() {
|
_ali_signature_nonce() {
|
||||||
|
|
Loading…
Reference in New Issue