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

        

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to