diff --git a/lib/hosting/gcp_apis.rb b/lib/hosting/gcp_apis.rb index 85861eed2..59629ed46 100644 --- a/lib/hosting/gcp_apis.rb +++ b/lib/hosting/gcp_apis.rb @@ -248,7 +248,8 @@ def list_objects(bucket, pattern) return [] end - data["items"].map { |hsh| {key: hsh["name"], last_modified: Time.new(hsh["updated"])} } + # customTime will be only present when we migrate a bucket to another bucket + data["items"].map { |hsh| {key: hsh["name"], last_modified: Time.new(hsh["customTime"] || hsh["updated"])} } end def get_json_object(bucket, object)