summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2017-04-07 13:54:32 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2017-04-07 22:16:29 +0200
commitbf30090be5e3d339c9188d81a900ed2fe4bd6318 (patch)
treebd55f05dbaec9f2b2055347b7ee67cb51a85ff32 /core
parent637920f669b2f42e7ba6cf672c2271bee42d07e3 (diff)
downloadnextcloud-server-bf30090be5e3d339c9188d81a900ed2fe4bd6318.tar.gz
nextcloud-server-bf30090be5e3d339c9188d81a900ed2fe4bd6318.zip
Parse date trough moment
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'core')
-rw-r--r--core/js/sharedialogshareelistview.js2
1 files changed, 1 insertions, 1 deletions
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,
});
},