зеркало из https://github.com/mozilla/pjs.git
Bug 343641 Wrong 'Xth {day of week} of the month' option offered in recurrence dialog, r=dmose
This commit is contained in:
Родитель
88b82ee0a8
Коммит
ccf4d4b08b
|
@ -88,7 +88,8 @@ function loadDialog()
|
|||
document.getElementById("monthly-nth-day").label = str;
|
||||
|
||||
// Set label to 'second week of the month'
|
||||
var monthWeekNum = Math.floor(window.startDate.day / 7) + 1;
|
||||
// Note that the date here needs to be 0 based to work properly
|
||||
var monthWeekNum = Math.floor((window.startDate.day - 1) / 7) + 1;
|
||||
nthstr = props.GetStringFromName("ordinal.name."+monthWeekNum);
|
||||
var daystr = props.GetStringFromName("day."+(window.startDate.weekday+1)+".name");
|
||||
str = props.formatStringFromName("recurNthWeek", [nthstr, daystr], 2);
|
||||
|
|
Загрузка…
Ссылка в новой задаче