Class CloudStackParserModule.CloudStackDateAdapter

  • Enclosing class:
    CloudStackParserModule

    public static class CloudStackParserModule.CloudStackDateAdapter
    extends GsonModule.Iso8601DateAdapter
    Data adapter for the date formats used by CloudStack. Essentially this is a workaround for the CloudStack getUsage() API call returning a corrupted form of ISO-8601 dates, which have an unexpected pair of apostrophes, like 2011-12-12'T'00:00:00+00:00