I got some date values in layer properties.

When i use GetFeatureInfo request to WMS, i got date on day back, for example in DB or in WFS requests or in layer preview it is '2015-04-10', but i got '2015-04-09Z' in my WMS request.

How can i fix or change this output on server side?

Geoserver + PostGis


1 Answer 1


Start your Goserver with this Java option:


It will tell Geotools to not modify date objects (http://docs.geotools.org/latest/javadocs/org/geotools/factory/GeoTools.html#LOCAL_DATE_TIME_HANDLING).

You need to have at least version 15 of Geotools for this to work.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.