I have a java.util.Date type stored in Geode region as a PdxInstance, in the format Wed Sep 13 08:55:34 BST 2017 for example.
- Is there a Pdx setting I am missing to format the date so I the date type includes milliseconds as well?
- When I run a "get" on the region via the Geode REST API the date is returned as
mm/dd/yyyywithout thehh:mm:sswhy is that? Is there a Jetty setting I can use to include the latter?
Thanks for comment
The
JSONFormatterclass, used internally in Geode to handle REST requests/responses, supports only the formatMM/DD/YYYYwhen handling dates, with noHH:MM:SS; while PDX supports all date fields, that's the reason why you see the difference in the output. There's already a JIRA ticket created for this: GEODE-226. You might want to add yourself as a watcher to get updates about the progress. Hope this helps. Best regards.