diff --git a/mozilla/calendar/import-export/calMonthGridPrinter.js b/mozilla/calendar/import-export/calMonthGridPrinter.js index 8a916ed295e..e50cb73d22b 100644 --- a/mozilla/calendar/import-export/calMonthGridPrinter.js +++ b/mozilla/calendar/import-export/calMonthGridPrinter.js @@ -330,19 +330,9 @@ function makeHTMLWeek(date, sortedList, targetMonth) { var dateFormatter = Components.classes["@mozilla.org/calendar/datetime-formatter;1"] .getService(Components.interfaces.calIDateTimeFormatter); - - - function getStringForDate(date) { - var dstring; - if (!date.isDate) { - return dateFormatter.formatTime(sDate); - } - return calGetString("dateFormat", "AllDay"); - } - - var time; - if (sDate) { - time = getStringForDate(sDate); + var time = ""; + if (!sDate.isDate) { + time = dateFormatter.formatTime(sDate); } var calMgr = Components.classes["@mozilla.org/calendar/manager;1"] diff --git a/mozilla/calendar/import-export/calWeekPrinter.js b/mozilla/calendar/import-export/calWeekPrinter.js index 0cf92274f40..26fd0d31715 100644 --- a/mozilla/calendar/import-export/calWeekPrinter.js +++ b/mozilla/calendar/import-export/calWeekPrinter.js @@ -112,9 +112,6 @@ function weekPrint_format(aStream, aStart, aEnd, aCount, aItems, aTitle) { var weekFormatter = Components.classes["@mozilla.org/calendar/weektitle-service;1"] .getService(Components.interfaces.calIWeekTitleService); - // A place to cache the string for "All Day" events later if we need it. - var mAllDayString = null; - // Start at the beginning of the week that aStart is in, and loop until // we're at aEnd. In the loop we build the HTML table for each day, and // get the day's items using getDayTd(). @@ -250,29 +247,13 @@ function weekPrint_getDayTable(aDate, aItems) { break; } - function getStringForDate(aDate) { - if (!aDate.isDate) { - return dateFormatter.formatTime(aDate); - } - - // We cache the string for "All Day" 'cause we're good like that. - if (this.mAllDayString == null) { - this.mAllDayString = calGetString("dateFormat", "AllDay"); - } - return this.mAllDayString; - } - - var time; - if (sDate && eDate) { - if (!sDate.isDate) { - time = getStringForDate(sDate) + '-' + getStringForDate(eDate); - } else { - time = getStringForDate(sDate); - } - } else if (sDate) { - time = getStringForDate(sDate); - } else if (eDate) { - time = getStringForDate(eDate); + var time = ""; + if (sDate && eDate && !sDate.isDate) { + time = dateFormatter.formatTime(sDate) + '-' + dateFormatter.formatTime(eDate); + } else if (sDate && !sDate.isDate) { + time = dateFormatter.formatTime(sDate); + } else if (eDate && !eDate.isDate) { + time = dateFormatter.formatTime(eDate); } // Get calendar and category colours and apply them to the item's diff --git a/mozilla/calendar/locales/en-US/chrome/calendar/dateFormat.properties b/mozilla/calendar/locales/en-US/chrome/calendar/dateFormat.properties index 9f5752a78d5..46ed565c2b8 100644 --- a/mozilla/calendar/locales/en-US/chrome/calendar/dateFormat.properties +++ b/mozilla/calendar/locales/en-US/chrome/calendar/dateFormat.properties @@ -94,8 +94,6 @@ pm-string=PM noon=Noon midnight=Midnight -AllDay=All Day - # Added to support localization of messages within eventDialog.js # Day ordinals imply order within a list. ordinal.suffix.1=st