User:Anomie/lastmod.js: Difference between revisions

Content deleted Content added
adjust
oops
Line 35:
if(typeof(r.query.pages[wgArticleId].revisions[0].timestamp)=='undefined') return;
m=r.query.pages[wgArticleId].revisions[0].timestamp.match(/^(\d\d\d\d)-(\d\d)-(\d\d)T(\d\d):(\d\d):(\d\d)Z$/);
if(LastModUseUTCLastMod.UseUTC){
m[2]-=1;
} else {
Line 48:
 
var dt;
if(LastModDateFormatLastMod.DateFormat=='dmy'){
dt=m[3]+' '+LastModMonthsLastMod.Months[m[2]]+' '+m[1];
} else if(LastModDateFormatLastMod.DateFormat=='dmy'){
dt=LastModMonthsLastMod.Months[m[2]]+' '+m[3]+', '+m[1];
} else {
dt=m[1]+'-'+m[2]+'-'+m[3];