iso date time format tests

This commit is contained in:
Keith Donald
2009-11-05 17:18:54 +00:00
parent 8de34c6fa7
commit d65454175d
4 changed files with 70 additions and 4 deletions

View File

@@ -42,7 +42,7 @@ public final class JodaTimeContextHolder {
* @param context the current JodaTimeContext, or <code>null</code> to clear
* the thread-bound context
*/
public static void setLocaleContext(JodaTimeContext context) {
public static void setJodaTimeContext(JodaTimeContext context) {
jodaTimeContextHolder.set(context);
}

View File

@@ -103,6 +103,7 @@ public class JodaTimeFormattingConfigurer {
formatterRegistry.addFormatterForFieldType(Date.class, new MillisecondInstantPrinter(jodaDateTimeFormatter), dateTimeParser);
formatterRegistry.addFormatterForFieldAnnotation(new DateTimeFormatAnnotationFormatterFactory());
formatterRegistry.addFormatterForFieldAnnotation(new ISODateTimeFormatAnnotationFormatterFactory());
}
// internal helpers