[Geoserver-devel] how does geoserver handle time zones?

I’m using Geoserver to serve points stored in PostGIS with time fields of type ‘timestamp with timezone’, with the timezone = +02 (being South African Standard Time).

If I query them in psql or do a WMS GetFeatureInfo through MapServer, the response represents the time correctly, by including the time zone.

GeoServer, however, returns the time minus 2h, with no indication of time zone. So it appears as if the times are two hours out. I would expect it either to return the time as is like MapServer does, or to subtract to hours and reflect that the time shown is now UTC.

Is there something I need to do to get around this or is it a geoserver issue?

Gavin


This message is subject to the CSIR’s copyright, terms and conditions and e-mail legal notice.
Views expressed herein do not necessarily represent the views of the CSIR.

CSIR E-mail Legal Notice

CSIR Copyright, Terms and Conditions

For electronic copies of the CSIR Copyright, Terms and Conditions and the CSIR Legal Notice
send a blank message with “REQUEST LEGAL” in the subject line to CSIR HelpDesk

This message has been scanned for viruses and dangerous content by MailScanner,
and is believed to be clean. MailScanner thanks Transtec Computers for their support.