[
https://jira.nuxeo.com/browse/NXP-6744?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=93370#comment-93370
]
Thomas Roger commented on NXP-6744:
-----------------------------------
The encoding of the Date is done through
{{org.nuxeo.ecm.core.schema.types.primitives.DateType#encode}}, called in
{{org.nuxeo.ecm.automation.server.jaxrs.io.writers.JsonDocumentWriter}}.
It uses a W3C format:
{code}
public static String formatW3CDateTime(Date date)
SimpleDateFormat dateFormater = new
SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'",Locale.US);
dateFormater.setTimeZone(TimeZone.getTimeZone("GMT"));
return dateFormater.format(date);
}
{code}
> Dashboard widget displays wrong date
> ------------------------------------
>
> Key: NXP-6744
> URL: https://jira.nuxeo.com/browse/NXP-6744
> Project: Nuxeo Enterprise Platform
> Issue Type: Bug
> Components: Dashboard / OpenSocial
> Environment: Safari 5
> Reporter: Florent Guillaume
> Assignee: Thomas Roger
> Priority: Major
> Fix For: 5.4.2
>
>
> Last modified date displayed as:
> -2147483629 December 1969 -596:
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
ECM-tickets mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm-tickets