[Geoserver-devel] [jira] Created: (GEOS-4853) KML Time template does not work anymore due to XSDateTimeBinding changes

KML Time template does not work anymore due to XSDateTimeBinding changes
------------------------------------------------------------------------

                 Key: GEOS-4853
                 URL: https://jira.codehaus.org/browse/GEOS-4853
             Project: GeoServer
          Issue Type: Bug
          Components: Google Earth KML Output
    Affects Versions: 2.1.2
            Reporter: Andrea Aime
            Assignee: Andrea Aime
             Fix For: 2.1.3

The XSDateTimeBinding used to take a Calendar as a parameter, but recent changes made it work only with a Date instead.

The following code in the KMLMapTransformer broke as a result:

{code}
protected String encodeDateTime(Date date) {
            if (date != null) {
                Calendar c = Calendar.getInstance();
                c.setTime(date);
                return new XSDateTimeBinding().encode(c, null);
            } else {
                return null;
            }
        }
{code}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira