serializing Dates using POF
668705Dec 2 2008 — edited Aug 12 2009I'm running into a problem using an external POF serializer to serialize/deserialize java.util.Date values.
In the serialize method, I'm using PofWriter.writeDateTime(), and in the deserialize method, I'm using PofReader.readDate().
However, when I do a round trip test the milliseconds field of the Date is not being retained.
The javadoc for PofWriter.writeDateTime() method says
"This method encodes the year, month, day, hour, minute, second and millisecond information of the specified Date object."
so is this a bug in the readDate() method, or should I be using a different set of methods to read/write Dates if
I want millisecond precision retained?