Bug 1723423 - Format time nicely in the iMIP bar. r=mkmelin a=wsmwk
authorGeoff Lankow <geoff@darktrojan.net>
Mon, 02 Aug 2021 14:36:00 +1200
changeset 43307 1593da9b26acfbfb3a602f087cc33da1779caa9c
parent 43306 fe8f67bf4960ac3fc5f6d5c542d21c4c60cd4a23
child 43308 2de1cc2c91d0cb4a047f5ed3994580b8b1513535
push id14
push userthunderbird@calypsoblue.org
push dateTue, 24 Aug 2021 17:35:28 +0000
treeherdercomm-esr91@0bad9e64c3ab [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmkmelin, wsmwk
bugs1723423
Bug 1723423 - Format time nicely in the iMIP bar. r=mkmelin a=wsmwk Differential Revision: https://phabricator.services.mozilla.com/D121497
calendar/base/modules/utils/calItipUtils.jsm
calendar/locales/en-US/chrome/lightning/lightning.properties
--- a/calendar/base/modules/utils/calItipUtils.jsm
+++ b/calendar/base/modules/utils/calItipUtils.jsm
@@ -383,17 +383,17 @@ var calitip = {
         );
         let delTime = null;
         let items = itipItem.getItemList();
         if (items && items.length) {
           delTime = delmgr.getDeletedDate(items[0].id);
         }
         if (delTime) {
           data.label = cal.l10n.getLtnString("imipBarReplyToRecentlyRemovedItem", [
-            delTime.toString(),
+            cal.dtz.formatter.formatTime(delTime),
           ]);
         } else {
           data.label = cal.l10n.getLtnString("imipBarReplyToNotExistingItem");
         }
       } else if (itipItem.receivedMethod == "DECLINECOUNTER") {
         data.label = cal.l10n.getLtnString("imipBarDeclineCounterText");
       }
     } else if (Components.isSuccessCode(rc)) {
--- a/calendar/locales/en-US/chrome/lightning/lightning.properties
+++ b/calendar/locales/en-US/chrome/lightning/lightning.properties
@@ -125,17 +125,17 @@ imipBarUpdateMultipleText=This message c
 imipBarUpdateSeriesText=This message contains an update to an existing series of events.
 imipBarAlreadyProcessedText=This message contains an event that has already been processed.
 imipBarProcessedNeedsAction=This message contains an event that you have not yet responded to.
 imipBarProcessedMultipleNeedsAction=This message contains multiple events that you have not yet responded to.
 imipBarProcessedSeriesNeedsAction=This message contains an event series that you have not yet responded to.
 imipBarReplyText=This message contains a reply to an invitation.
 imipBarReplyToNotExistingItem=This message contains a reply referring to an event that is not in your calendar.
 # LOCALIZATION_NOTE(imipBarReplyToRecentlyRemovedItem):
-# %1$S - datetime of deletion
+# %1$S - time of deletion
 imipBarReplyToRecentlyRemovedItem=This message contains a reply referring to an event that was removed from your calendar at %1$S.
 imipBarUnsupportedText2=This message contains an event that this version of %1$S cannot process.
 imipBarProcessingFailed=Processing message failed. Status: %1$S.
 imipBarCalendarDeactivated=This message contains event information. Enable a calendar to handle it.
 imipBarNotWritable=No writable calendars are configured for invitations, please check the calendar properties.
 imipSendMail.title=E-Mail Notification
 imipSendMail.text=Would you like to send out notification E-Mail now?
 imipNoIdentity=None