Review for SmartTemplate by Brian Woltemate
Rated 4 out of 5 stars
Fix for all messages.
By replacing the prTime2Str function at 416 with the below function will make the date received %datelocal%Reserved word match the time stamp of Thunderbird. The early comment only fix the problem on certain messages.
function prTime2Str(time, type, timezone)
{
//Patch to correctly handle comcast.net emails.
var tm = new Date();
var fmt = Components.classes["@mozilla.org/intl/scriptabledateformat;1"].
createInstance(Components.interfaces.nsIScriptableDateFormat);
var locale = parent.pref.getCom("general.useragent.locale", "en-US");
// Set Time
tm.setTime(time / 1000);
alert(tm);
// Format date string
switch (type) {
case "datelocal":
dateFormat = fmt.dateFormatLong; timeFormat = fmt.timeFormatSeconds;
break;
case "dateshort":
default:
dateFormat = fmt.dateFormatShort; timeFormat = fmt.timeFormatSeconds;
break;
}
return fmt.FormatDateTime(locale, dateFormat, timeFormat,
tm.getFullYear(), tm.getMonth() + 1, tm.getDate(),
tm.getHours(), tm.getMinutes(), tm.getSeconds());
}
To create your own collections, you must have a Mozilla Add-ons account.