on 04-18-2007 9:14 AM
Hi All,
do anybody have experience with new java API and DateTimeValue value type (package: com.sap.mdm.valuetypes). Seems that this class / constructor is invalid due to incorrect hour interpretation.
Constructor of this class takes Calendar object and ignore 24-hour hour format (HOUR_OF_DAY element of calendar object) and only use Calendar.HOUR element ignoring the AM/PM indicator.
To check this simply create DateTimeValue object using Calendar object with hour between 13 and 23.
Anybody faced this problem (or maybe again I'm doing something wrong) ?
This looks like a bug in SP4 Patch 3.
Calendar calendar = Calendar.getInstance();
DateTimeValue dateTimeValue = new DateTimeValue(calendar);
While debugging I get these values..
calendar.getTime()
(java.util.Date) Wed Apr 18 <b>13:41:13</b> CDT 2007
dateTimeValue.toString()
(java.lang.String) 04/18/2007 <b>01:41:13</b>
Please open a OSS message.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.