formatter.format(formatted, march12, p); CPPUNIT_ASSERT_EQUAL((LogString) LOG4CXX_STR("11 Apr 2004 00:00:00,000"), formatted );
formatter.format(formatted, apr11, p);  std::locale localeUS(LOCALE_US); struct tm apr11tm = { 0, 0, 0, 11, 03, 104 }; LogString expected(formatDate(localeUS, apr11tm, LOG4CXX_STR("%b")));  CPPUNIT_ASSERT_EQUAL(expected, formatted);
  void test8()  {    apr_time_t march12 = MICROSECONDS_PER_DAY * 12519;    LocaleChanger localeChange(LOCALE_US);    if (localeChange.isEffective()) {        LogString formatted;        Pool p;        DateTimeDateFormat formatter;        formatter.setTimeZone(TimeZone::getGMT());        formatter.format(formatted, march12, p);        CPPUNIT_ASSERT_EQUAL((LogString) LOG4CXX_STR("11 Apr 2004 00:00:00,000"), formatted );    }  }