Recently we discovered a flaw in DefaultPersistent class regarding the way it formats the timestamp field for the database. It uses the following format -
"yyyy-MM-dd hh:mm:ss" ( used in getFieldDate() method)
This triggers a problem for time String 12:30 PM which gets converted to 00:30 after formatting. This happens due to the "hh" format used for hours which specifies "Hour in am/pm (1-12)" format. To fix this we need to change it to use "HH" format which specifies "Hour in day (0-23)" format.
Let us know if this creates any problem so that we can discuss on tackling it some other way.
Thanks and Regards.
-- Santanu Dutt Senior Consultant Platinumsolutions Inc e-mail: [EMAIL PROTECTED] web: www.platinumsolutions.com ph: 703-471-9793 ext-203 fax: 703-471-7140 |
