TransWikia.com

GeoServer Timestamp/Timezone error convert

Geographic Information Systems Asked by Tim van Heteren on September 30, 2021

Date format in PostgreSQL, -> 2019-10-30 08:46:44

Created WFS, but got a problem.

GeoServer is converting the date. I think it somehow something with timezones.

Output WFS -> 2019-10-30T07:46:44Z

So one hour difference. Need timezone Amsterdam, not the standard.

How to solve this?

2 Answers

GeoServer (and GeoTools the underlying library) assume that all times and dates are stored in UTC - otherwise life just gets too complicated. You can either handle timezone conversion in the client or set the LOCAL_DATE_TIME_HANDLING to true and hope that everything works out (GeoServer doesn't really understand DST either).

Answered by Ian Turton on September 30, 2021

add this in the java options of start.ini file by vim editor

-Duser.timezone=Asia/Kolkata
-Dorg.geotools.localDateTimeHandling=true

change time zone as per your region

Answered by Abhilash Singh Chauhan on September 30, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP