This commit is contained in:
alesapin 2023-06-03 23:44:19 +02:00
parent 894457d6e1
commit 57070227a8
2 changed files with 4 additions and 2 deletions

View File

@ -91,7 +91,9 @@ void AzureObjectStorage::listObjects(const std::string & path, RelativePathsWith
blob.Name,
ObjectMetadata{
static_cast<uint64_t>(blob.BlobSize),
blob.Details.LastModified.time_since_epoch().count(),
Poco::Timestamp::fromEpochTime(
std::chrono::duration_cast<std::chrono::seconds>(
blob.Details.LastModified.time_since_epoch()).count()),
{}});
}

View File

@ -211,7 +211,7 @@ void S3ObjectStorage::listObjects(const std::string & path, RelativePathsWithMet
break;
for (const auto & object : objects)
children.emplace_back(object.GetKey(), ObjectMetadata{static_cast<uint64_t>(object.GetSize()), object.GetLastModified().Millis() / 1000, {}});
children.emplace_back(object.GetKey(), ObjectMetadata{static_cast<uint64_t>(object.GetSize()), Poco::Timestamp::fromEpochTime(object.GetLastModified().Seconds()), {}});
if (max_keys)
{