diff options
-rw-r--r-- | core/js/share.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/core/js/share.js b/core/js/share.js index 79fcf61c215..baf5fe5b335 100644 --- a/core/js/share.js +++ b/core/js/share.js @@ -1063,7 +1063,8 @@ $(document).ready(function() { $button.prop('disabled', false); OC.Share.showLink(data.token, null, itemSource); if (data.expiration) { - OC.Share.showExpirationDate(data.expiration); + var expireDate = moment(data.expiration, 'YYYY-MM-DD').format('DD-MM-YYYY'); + OC.Share.showExpirationDate(expireDate); } $('#dropdown').trigger(new $.Event('sharesChanged', {shares: OC.Share.currentShares})); OC.Share.updateIcon(itemType, itemSource); @@ -1207,7 +1208,8 @@ $(document).ready(function() { } if (data.expiration) { - OC.Share.showExpirationDate(data.expiration); + var expireDate = moment(data.expiration, 'YYYY-MM-DD').format('DD-MM-YYYY'); + OC.Share.showExpirationDate(expireDate); } $('#dropdown').trigger(new $.Event('sharesChanged', {shares: OC.Share.currentShares})); }, function(result) { |