Hello,

I am trying to get a time zone offset from an attribute in my custom data
store to be expressed in XML, e.g offset = +1 results in
<date>T<time>+01:00. This should work both in WFS 1.0.0 (GML2) and WFS 1.1.0
(GML3). I am using geotools 2.7.2 and geoserver 2.1.1.

I tested with a number of source types like GregorianCalendar,
java.util.Date, XMLGregorianCalendar, MyGregorianCalendar, String etc. in my
FeatureReader and also tried a variety of attribute types for the schema
(Date, java.util.Calendar ...).

My timezone offset always gets lost somewhere in between (probably in
TemporalConverterFactory), or other things go wrong (WFS Filter broken,
geoserver reports that there is no schema type for java.util.Calendar etc.). 
I mean the actual time is always correct, but it never shows up with +01:00
(my local timezone is not +01:00). 

Is there any way to get this done properly, because the only solution I see
is to actually change the formatting both in DateUtil (GML2) and in
XsDateTimeFormat(GML3).

Thanks.

--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Getting-timezone-offsets-from-a-custom-data-store-all-the-way-to-gml-xml-serialization-tp6562389p6562389.html
Sent from the geotools-gt2-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of 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-d2d-c2
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to