linux oss 上传文件遇到 oss authentication requires a valid date

问题遇到的现象和发生背景

在使用oss上传过程中遇到以上问题,时间无效应该怎么修改呢,在代码里面并没有处理时间

问题相关代码,请勿粘贴截图

/* 初始化网络等资源 */
InitializeSdk();

ClientConfiguration conf;
//客户端
OssClient client(Endpoint.toStdString(), keyId.toStdString(), keySecret.toStdString(), conf);

/* 断点续传上传 */
string cPath = "";
cPath = UnicodeToAscii(uploadPath.toStdWString()); // path需多字符集编码  key需UTF-8编码
UploadObjectRequest request(bucket.toStdString(), obj.toStdString(), cPath, CheckpointFilePath.toStdString());
request.setContentEncoding("utf-8");
auto outcome = client.ResumableUploadObject(request);

if (!outcome.isSuccess()) {
    /* 异常处理 */
    outcome.error().Host();
    strErr.append(tr("ResumableUploadObject fail"));
    strErr.append(tr(",code:"));
    strErr.append(QString::fromStdString(outcome.error().Code()));
    strErr.append(tr(",message:"));
    strErr.append(QString::fromStdString(outcome.error().Message()));
    strErr.append(tr(",requestId:"));
    strErr.append(QString::fromStdString(outcome.error().RequestId()));
    ShutdownSdk();
    return false;
}
/* 释放网络等资源 */
ShutdownSdk();
return true;

也许是oss authentication requires a valid data拼写错误成date了
(^_^)