You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sdap.apache.org by fg...@apache.org on 2020/02/21 01:10:00 UTC

[incubator-sdap-nexus] branch master updated: SDAP 218: bug correction on start/end date from nexcusli.dataset_list() (#90)

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

fgreg pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-sdap-nexus.git


The following commit(s) were added to refs/heads/master by this push:
     new 7e6576f  SDAP 218: bug correction on start/end date from nexcusli.dataset_list()  (#90)
7e6576f is described below

commit 7e6576fc15724506b2ca2c94321a59fd8a2d726e
Author: tloubrieu-jpl <60...@users.noreply.github.com>
AuthorDate: Thu Feb 20 17:08:52 2020 -0800

    SDAP 218: bug correction on start/end date from nexcusli.dataset_list()  (#90)
    
    * Update doc after standalone deployment on my laptop
    
    * Update layout after rst preview test
    
    * SDAP-216 Update the quickstart guide after deployment test on my laptop
    
    * For SDAP-218, get the iso start/end date directly from the nexus '/list' request.
    
    * remove change from pull request #89
---
 client/nexuscli/nexuscli.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/client/nexuscli/nexuscli.py b/client/nexuscli/nexuscli.py
index 5652592..e430f97 100644
--- a/client/nexuscli/nexuscli.py
+++ b/client/nexuscli/nexuscli.py
@@ -87,8 +87,8 @@ def dataset_list():
 
     list_response = []
     for dataset in data:
-        dataset['start'] = datetime.utcfromtimestamp(dataset['start'] / 1000).strftime(ISO_FORMAT)
-        dataset['end'] = datetime.utcfromtimestamp(dataset['end'] / 1000).strftime(ISO_FORMAT)
+        dataset['start'] = dataset['iso_start']
+        dataset['end'] = dataset['iso_end']
 
         ordered_dict = OrderedDict()
         ordered_dict['shortName'] = dataset['shortName']