go back to PR_FormatTime() until #10412 is fixed.

This commit is contained in:
sspitzer%netscape.com 1999-07-24 01:47:59 +00:00
parent e24534d85b
commit 8faee4daf2
2 changed files with 2 additions and 8 deletions

View File

@ -124,7 +124,6 @@ nsresult nsDateTimeFormatUnix::FormatTMTime(nsILocale* locale,
// generate data/time string
char *old_locale = setlocale(LC_TIME, NULL);
(void) setlocale(LC_TIME, platformLocale);
#ifdef CRASHES_SEE_BUG_10412
if (strlen(fmtD) && strlen(fmtT)) {
PL_strcat(fmtD, " ");
PL_strcat(fmtD, fmtT);
@ -139,12 +138,6 @@ nsresult nsDateTimeFormatUnix::FormatTMTime(nsILocale* locale,
else {
PL_strcpy(strOut, "");
}
#else
#ifdef DEBUG
printf("date is hacked out to work around #10412\n");
#endif /* DEBUG */
PL_strcpy(strOut, "");
#endif /* CRASHES_SEE_BUG_10412 */
(void) setlocale(LC_TIME, old_locale);
// convert result to unicode

View File

@ -305,7 +305,8 @@ nsRDFContentUtils::GetTextForNode(nsIRDFNode* aNode, nsString& aResult)
else if (NS_SUCCEEDED(rv = aNode->QueryInterface(kIRDFDateIID, (void**) &dateLiteral))) {
PRInt64 theDate;
if (NS_SUCCEEDED(rv = dateLiteral->GetValue( &theDate ))) {
#if 0
/* sspitzer: don't switch off until #10412 is fixed. this causes crashers on UNIX. I'm investigating */
#if 1
PRExplodedTime dateData;
PR_ExplodeTime(theDate, PR_LocalTimeParameters, &dateData);
char dateBuf[128];