[
https://issues.apache.org/jira/browse/OLINGO-21?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13773149#comment-13773149
]
Michael Bolz commented on OLINGO-21:
------------------------------------
Found a better solution, changed line 187
from:
{code}
appendMilliseconds(result, timeInMillis, facets);
{code}
to:
{code}
appendMilliseconds(result, dateTimeValue.get(Calendar.MILLISECOND),
facets);
{code}
After I have written some more tests I will push the fix.
> Incorrect millisecond handling in EdmDateTime
> ----------------------------------------------
>
> Key: OLINGO-21
> URL: https://issues.apache.org/jira/browse/OLINGO-21
> Project: Olingo
> Issue Type: Bug
> Reporter: Michael Bolz
> Assignee: Michael Bolz
>
> In rare cases a 'dot' is attached during serialization of EdmDateTime in a
> String.
> Example:
> Calendar date = Calendar.getInstance(TimeZone.getTimeZone("GMT"));
> date.set(1954, 7, 4);
> String formated = instance.valueToString(date, EdmLiteralKind.DEFAULT,
> getPrecisionScaleFacets(3, null));
> Results in ~ "1954-08-04T09:27:55."
> The 'dot' at the end of the string is incorrect.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira