On Tue, Jul 19, 2011 at 10:33 PM, Carlos Krefft <[email protected]>wrote:
> I want the Timestamp to be show in my application exactly as it is in my > Database (as *UTM. +00*.)**** > > What i get back from GeoServer via WFS request is:**** > > 2010-08-20T16:56:15.095-04:00**** > > What is stored in the PostGIS database is:**** > > 2010-08-20 20:56:15.095+00**** > > * * > > *How do i tell GeoServer not to convert the time so that i see the time > exactly how it is in the database as UTM? Is it on Apache, System Time, > GeoServer config?* > > ** ** > > PostGIS data type is "timestamp with time zone". In GeoServer this field is > show with datatype "Timestamp"**** > > [image: Description: enter image description here]**** > > ** ** > > Running GeoServer on latest stable Suse linux Ent.**** > > Geoserver Build Information**** > > **· **Version2.1.0**** > > **· **Subversion Revision15809**** > > **· **Build Date11-May-2011 20:09**** > > **· **GeoTools Version2.7.1 (rev -1) > GeoServer does not have any timezone changing code, which means all java defaults apply. In particular this will mean the system timezone is used. If you are using Linux adding the following in the script that launches your web container should make the VM use the UTC time zone: export TZ=UTC I guess a web search will turn out how to do that in other operating systems as well. Cheers Andrea -- ------------------------------------------------------- Ing. Andrea Aime GeoSolutions S.A.S. Tech lead Via Poggio alle Viti 1187 55054 Massarosa (LU) Italy phone: +39 0584 962313 fax: +39 0584 962313 http://www.geo-solutions.it http://geo-solutions.blogspot.com/ http://www.youtube.com/user/GeoSolutionsIT http://www.linkedin.com/in/andreaaime http://twitter.com/geowolf -------------------------------------------------------
<<image001.png>>
------------------------------------------------------------------------------ 10 Tips for Better Web Security Learn 10 ways to better secure your business today. Topics covered include: Web security, SSL, hacker attacks & Denial of Service (DoS), private keys, security Microsoft Exchange, secure Instant Messaging, and much more. http://www.accelacomm.com/jaw/sfnl/114/51426210/
_______________________________________________ Geoserver-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
