Chaps,
Ive just noticed that SqlTimestampConverter appears to be broken.
I expected it to produce a Date/Time as output, but it only produces
a time. SqlTimeConverter prints a simple time as I expected.
Looking in the code SqlTimestampConverter::convertToString uses:
DateFormat format = DateFormat.getTimeInstance(dateFormat, locale);
when I think it should say:
DateFormat format = DateFormat.getDateTimeInstance(DateFormat.SHORT,
DateFormat.SHORT, locale);
instead.
convertToObject would need a corresponding change to:
DateFormat format = DateFormat.getDateTimeInstance(DateFormat.SHORT,
DateFormat.SHORT, locale);
Am I right or is this behavior by design?
Cheers - Steve
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]