Browse Source

HUE-7548 [metastore] Create table time conversion to local time can fail

Set timezone to Paris and restart HS2 nad list a table:
e.g.
Tue Jun 20 17:06:46 CEST 2017
will show up as 'Invalid Date'

Long term would be to properly convert it.
Romain Rigaux 8 years ago
parent
commit
9f4f66a1ed
1 changed files with 1 additions and 1 deletions
  1. 1 1
      apps/metastore/src/metastore/templates/metastore.mako

+ 1 - 1
apps/metastore/src/metastore/templates/metastore.mako

@@ -297,7 +297,7 @@ ${ components.menubar(is_embeddable) }
     <div title="${ _('Owner') }">
     <div title="${ _('Owner') }">
       <i class="fa fa-fw fa-user muted"></i> <span data-bind="text: details.properties.owner"></span>
       <i class="fa fa-fw fa-user muted"></i> <span data-bind="text: details.properties.owner"></span>
     </div>
     </div>
-    <div title="${ _('Created') }"><i class="fa fa-fw fa-clock-o muted"></i> <span data-bind="text: localeFormat(details.properties.create_time)"></span></div>
+    <div title="${ _('Created') }"><i class="fa fa-fw fa-clock-o muted"></i> <span data-bind="text: localeFormat(details.properties.create_time) != 'Invalid Date' ? localeFormat(details.properties.create_time) : details.properties.create_time"></span></div>
     <div title="${ _('Format') }">
     <div title="${ _('Format') }">
       <i class="fa fa-fw fa-file-o muted"></i> <span data-bind="text: details.properties.format"></span>
       <i class="fa fa-fw fa-file-o muted"></i> <span data-bind="text: details.properties.format"></span>
       <i class="fa fa-fw fa-archive muted"></i>
       <i class="fa fa-fw fa-archive muted"></i>