зеркало из https://github.com/mozilla/gecko-dev.git
Convert formatted date to NCR like we do for string bundles,
bug 169081, r=shanjian, sr=jst.
This commit is contained in:
Родитель
924dd9e083
Коммит
29c41fc8f2
|
@ -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"));
|
||||
|
|
Загрузка…
Ссылка в новой задаче