diff options
Diffstat (limited to 'core/js')
-rw-r--r-- | core/js/js.js | 4 | ||||
-rw-r--r-- | core/js/share.js | 8 |
2 files changed, 9 insertions, 3 deletions
diff --git a/core/js/js.js b/core/js/js.js index ba8020c89ed..c5e32f3c278 100644 --- a/core/js/js.js +++ b/core/js/js.js @@ -667,9 +667,7 @@ function formatDate(date){ if(typeof date=='number'){ date=new Date(date); } - var monthNames = [ t('files','January'), t('files','February'), t('files','March'), t('files','April'), t('files','May'), t('files','June'), - t('files','July'), t('files','August'), t('files','September'), t('files','October'), t('files','November'), t('files','December') ]; - return monthNames[date.getMonth()]+' '+date.getDate()+', '+date.getFullYear()+', '+((date.getHours()<10)?'0':'')+date.getHours()+':'+((date.getMinutes()<10)?'0':'')+date.getMinutes(); + return $.datepicker.formatDate(datepickerFormatDate, date)+' '+date.getHours()+':'+((date.getMinutes()<10)?'0':'')+date.getMinutes(); } /** diff --git a/core/js/share.js b/core/js/share.js index de50e53a441..1bc8f555680 100644 --- a/core/js/share.js +++ b/core/js/share.js @@ -343,6 +343,14 @@ OC.Share={ } $(document).ready(function() { + $.datepicker.setDefaults({ + monthNames: monthNames, + monthNamesShort: $.map(monthNames, function(v) { return v.slice(0,3)+'.'; }), + dayNames: dayNames, + dayNamesMin: $.map(dayNames, function(v) { return v.slice(0,2); }), + dayNamesShort: $.map(dayNames, function(v) { return v.slice(0,3)+'.'; }), + firstDay: firstDay + }); $('a.share').live('click', function(event) { event.stopPropagation(); |