From bf30090be5e3d339c9188d81a900ed2fe4bd6318 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Fri, 7 Apr 2017 13:54:32 +0200 Subject: [PATCH] Parse date trough moment Signed-off-by: Roeland Jago Douma --- core/js/sharedialogshareelistview.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/js/sharedialogshareelistview.js b/core/js/sharedialogshareelistview.js index 555ca7fcded..a9945b594e1 100644 --- a/core/js/sharedialogshareelistview.js +++ b/core/js/sharedialogshareelistview.js @@ -236,7 +236,7 @@ isPasswordSet: hasPassword, secureDropMode: !this.model.hasReadPermission(shareIndex), hasExpireDate: this.model.getExpireDate(shareIndex) !== null, - expireDate: this.model.getExpireDate(shareIndex), + expireDate: moment(this.model.getExpireDate(shareIndex), 'YYYY-MM-DD').format('DD-MM-YYYY'), passwordPlaceholder: hasPassword ? PASSWORD_PLACEHOLDER : PASSWORD_PLACEHOLDER_MESSAGE, }); }, -- 2.39.5