Make use of new W (week) date format

This commit is contained in:
Thomas Bruederli 2011-06-16 10:15:26 -06:00
parent 83869428c3
commit 8ac4ab8ee8

View file

@ -1602,7 +1602,8 @@ var dateFormatters = {
return 'th'; return 'th';
} }
return ['st', 'nd', 'rd'][date%10-1] || 'th'; return ['st', 'nd', 'rd'][date%10-1] || 'th';
} },
W : function(d) { return iso8601Week(d); }
}; };
@ -5328,7 +5329,7 @@ function ListEventRenderer() {
} else if (segmode == 'month') { } else if (segmode == 'month') {
segHash = formatDate(segDate, 'MMMM yyyy'); segHash = formatDate(segDate, 'MMMM yyyy');
} else if (segmode == 'week') { } else if (segmode == 'week') {
segHash = opt('listTexts', 'week') + ' ' + iso8601Week(segDate); segHash = opt('listTexts', 'week') + formatDate(segDate, ' W');
} else if (segmode == 'day') { } else if (segmode == 'day') {
segHash = formatDate(segDate, colFormat); segHash = formatDate(segDate, colFormat);
} else { } else {