This is an automated email from the ASF dual-hosted git repository.

ofuks pushed a commit to branch bucket-browser-gcp
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git


The following commit(s) were added to refs/heads/bucket-browser-gcp by this 
push:
     new 235798f  update BucketDTO
235798f is described below

commit 235798f21aecf4598da20cbf3e9eda6c1d74e138
Author: Oleh Fuks <[email protected]>
AuthorDate: Thu Apr 23 11:52:34 2020 +0300

    update BucketDTO
---
 .../dlab-model/src/main/java/com/epam/dlab/dto/bucket/BucketDTO.java  | 2 +-
 .../epam/dlab/backendapi/service/impl/gcp/BucketServiceGcpImpl.java   | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git 
a/services/dlab-model/src/main/java/com/epam/dlab/dto/bucket/BucketDTO.java 
b/services/dlab-model/src/main/java/com/epam/dlab/dto/bucket/BucketDTO.java
index 5f260b7..369c866 100644
--- a/services/dlab-model/src/main/java/com/epam/dlab/dto/bucket/BucketDTO.java
+++ b/services/dlab-model/src/main/java/com/epam/dlab/dto/bucket/BucketDTO.java
@@ -30,5 +30,5 @@ public class BucketDTO {
     private final String bucket;
     private final String object;
     private final String size;
-    private final String creationDate;
+    private final String lastModifiedDate;
 }
diff --git 
a/services/provisioning-service/src/main/java/com/epam/dlab/backendapi/service/impl/gcp/BucketServiceGcpImpl.java
 
b/services/provisioning-service/src/main/java/com/epam/dlab/backendapi/service/impl/gcp/BucketServiceGcpImpl.java
index 6bc0a8d..bc9c261 100644
--- 
a/services/provisioning-service/src/main/java/com/epam/dlab/backendapi/service/impl/gcp/BucketServiceGcpImpl.java
+++ 
b/services/provisioning-service/src/main/java/com/epam/dlab/backendapi/service/impl/gcp/BucketServiceGcpImpl.java
@@ -97,13 +97,13 @@ public class BucketServiceGcpImpl implements BucketService {
 
     private BucketDTO toBucketDTO(BlobInfo blobInfo) {
         final String size = 
FileUtils.byteCountToDisplaySize(blobInfo.getSize());
-        Date date = new Date(blobInfo.getCreateTime());
+        Date date = new Date(blobInfo.getUpdateTime());
         SimpleDateFormat formatter = new SimpleDateFormat("dd-M-yyyy 
hh:mm:ss");
         return BucketDTO.builder()
                 .bucket(blobInfo.getBucket())
                 .object(blobInfo.getName())
                 .size(size)
-                .creationDate(formatter.format(date))
+                .lastModifiedDate(formatter.format(date))
                 .build();
     }
 }


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to