]> source.dussan.org Git - nextcloud-server.git/commitdiff
Parse date trough moment 4136/head
authorRoeland Jago Douma <roeland@famdouma.nl>
Fri, 7 Apr 2017 11:54:32 +0000 (13:54 +0200)
committerRoeland Jago Douma <roeland@famdouma.nl>
Fri, 7 Apr 2017 20:16:29 +0000 (22:16 +0200)
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
core/js/sharedialogshareelistview.js

index 555ca7fcded2998aa51268f6c3368b0d68bac2e8..a9945b594e1bfc62ff8a34f42c30802bfe81e55a 100644 (file)
                                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,
                        });
                },