[pve-devel] applied: [PATCH pve-manager] www/manager6/storage/ContentView.js: consider new ctime value
Thomas Lamprecht
t.lamprecht at proxmox.com
Fri Mar 6 19:13:16 CET 2020
On 3/4/20 11:47 AM, Dietmar Maurer wrote:
> Signed-off-by: Dietmar Maurer <dietmar at proxmox.com>
> ---
> www/manager6/storage/ContentView.js | 6 +++++-
> 1 file changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/www/manager6/storage/ContentView.js b/www/manager6/storage/ContentView.js
> index ffd38fb9..001efc7f 100644
> --- a/www/manager6/storage/ContentView.js
> +++ b/www/manager6/storage/ContentView.js
> @@ -680,11 +680,15 @@ Ext.define('PVE.storage.ContentView', {
> let v = record.data.volid;
> let match = v.match(/(\d{4}_\d{2}_\d{2})-(\d{2}_\d{2}_\d{2})/);
> if (match) {
> - let date = match[1].replace(/_/g, '.');
> + let date = match[1].replace(/_/g, '-');
> let time = match[2].replace(/_/g, ':');
> return date + " " + time;
> }
> }
> + if (record.data.ctime) {
> + let ctime = new Date(record.data.ctime * 1000);
> + return Ext.Date.format(ctime,'Y-m-d H:i:s');
> + }
> return '';
> }
> },
>
applied, but changed the commit subject to:
"ui: ContentView: consider new ctime value"
applied, thanks!
More information about the pve-devel
mailing list