User:Amaury/common.js: Difference between revisions

Content deleted Content added
mNo edit summary
mNo edit summary
Line 1:
importScript( 'User:Mxn/CommentsInLocalTime.js' ); // Backlink: [[User:Mxn/CommentsInLocalTime.js]]
 
window.LocalComments = $.extend(window.LocalComments, {
formats: {
day: function (then) { return then.calendar(); },
week: function (then) { return then.calendar(); },
other: "MMMM D, YYYY [at] h:mm A",
},
tooltipFormats: null
});
 
moment().calendar({
sameDaylastWeek: '[Today]dddd',
nextDay: '[Tomorrow]',
nextWeek: 'dddd',
lastDay: '[Yesterday]',
lastWeek: '[Last] dddd',
sameElse: 'DD/MM/YYYY'
});