You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 25, 2018. It is now read-only.
I was trying the EC2 driver against the OpenNebula EC2 implementation, and I am getting errors parsing dates:
Caused by: java.text.ParseException: Unparseable date: "2013-02-14T17:53:20+0100"
at java.text.DateFormat.parse(DateFormat.java:354)
at org.jclouds.date.internal.SimpleDateFormatDateService.iso8601DateParse(SimpleDateFormatDateService.java:154)
I've tryed patching OpenNebula to return milliseconds too, and my code works as expected.
Glad to hear things work, at least. And given the specification you refer to, the correct patch is indeed probably not in OpenNebula, but in jclouds: replacing the call to iso8601DateParse (wherever it occurs the the case of the particular call you are making) with iso8601SecondsDateParse, or trying first one, then the other, or something similar.
Hi,
I was trying the EC2 driver against the OpenNebula EC2 implementation, and I am getting errors parsing dates:
Caused by: java.text.ParseException: Unparseable date: "2013-02-14T17:53:20+0100"
at java.text.DateFormat.parse(DateFormat.java:354)
at org.jclouds.date.internal.SimpleDateFormatDateService.iso8601DateParse(SimpleDateFormatDateService.java:154)
The code I am using: https://gist.github.com/gionn/49ae4cd76f07ceac55f5
jclouds 1.5.8
AFAIK the date should be in ISO 8601 format (it is generated using the standard Ruby Time implementation)
Thanks.
The text was updated successfully, but these errors were encountered: