[enh] Display date with hour for app install time

This commit is contained in:
ljf 2018-12-10 00:06:39 +01:00
parent a71b6d4a88
commit becae1963c
2 changed files with 2 additions and 5 deletions

View file

@ -144,10 +144,7 @@
// Multi Instance settings
data.manifest.multi_instance = data.manifest.multi_instance ? y18n.t('yes') : y18n.t('no');
// Installation date
var d = new Date(data.settings.install_time * 1000);
data.install_time = d.getDate() + '/' + (d.getMonth()+1) + '/' + d.getFullYear();
data.install_time = new Date(data.settings.install_time * 1000);
c.view('app/app_info', data);
});

View file

@ -22,7 +22,7 @@
<dt>{{t 'multi_instance'}}</dt>
<dd>{{manifest.multi_instance}}</dd>
<dt>{{t 'install_time'}}</dt>
<dd>{{install_time}}</dd>
<dd>{{formatTime install_time day="numeric" month="long" year="numeric" hour="numeric" minute="numeric"}}</dd>
<dt>{{t 'url'}}</dt>
<dd><a href="https://{{settings.domain}}{{settings.path}}" target="_blank">https://{{settings.domain}}{{settings.path}}</a></dd>
</dl>