Use the date command to output standard ISO8601 UTC time.

This commit is contained in:
Zhong Lufan 2022-06-20 00:07:34 +08:00
parent 35efcdf74b
commit a221ef7e97
No known key found for this signature in database
GPG Key ID: BE2B3A1E76AD7D04
1 changed files with 2 additions and 2 deletions

View File

@ -91,9 +91,9 @@ _ali_signature_rpc() {
echo -n "$_sign_str" | openssl sha1 -hmac "$_AliAccessKeySecret&" -binary | openssl base64 -e
}
_ali_timestamp_rpc() {
_aliapi_timestamp_rpc() {
# ISO8601 UTC
date -u "+%FT%TZ"
date -u -Iseconds
}
_ali_signature_nonce() {