зеркало из https://github.com/mozilla/pjs.git
Convert formatted date to NCR like we do for string bundles,
bug 169081, r=shanjian, sr=jst.
This commit is contained in:
Родитель
361956343f
Коммит
5f78f6d91c
|
@ -522,19 +522,22 @@ nsIndexedToHTML::OnIndexAvailable(nsIRequest *aRequest,
|
|||
pushBuffer.Append(NS_LITERAL_STRING("</td>\n <td>"));
|
||||
} else {
|
||||
nsAutoString formatted;
|
||||
nsAutoString strNCR; // use NCR to show date in any doc charset
|
||||
mDateTime->FormatPRTime(nsnull,
|
||||
kDateFormatShort,
|
||||
kTimeFormatNone,
|
||||
t,
|
||||
formatted);
|
||||
pushBuffer.Append(formatted);
|
||||
ConvertNonAsciiToNCR(formatted, strNCR);
|
||||
pushBuffer.Append(strNCR);
|
||||
pushBuffer.Append(NS_LITERAL_STRING("</td>\n <td>"));
|
||||
mDateTime->FormatPRTime(nsnull,
|
||||
kDateFormatNone,
|
||||
kTimeFormatSeconds,
|
||||
t,
|
||||
formatted);
|
||||
pushBuffer.Append(formatted);
|
||||
ConvertNonAsciiToNCR(formatted, strNCR);
|
||||
pushBuffer.Append(strNCR);
|
||||
}
|
||||
|
||||
pushBuffer.Append(NS_LITERAL_STRING("</td>\n</tr>\n"));
|
||||
|
|
Загрузка…
Ссылка в новой задаче