Hi,
In older versions of geoserver (like 2.0.2) was the format of the date datatype in geojson "yyyy-mm-dd". In version 2.2.3 is a suffix "z" added to the format, so you get "yyyy-mm-ddz". Why is the 'z' suffix added and is there a way to get rid it?
Thanks,
Dirk-Jan
On Thu, Jan 17, 2013 at 1:58 PM, Dirk-Jan Bulsink <bulsink@anonymised.com> wrote:
Hi,
In older versions of geoserver (like 2.0.2) was the format of the date
datatype in geojson “yyyy-mm-dd”. In version 2.2.3 is a suffix “z” added
to the format, so you get “yyyy-mm-ddz”. Why is the ‘z’ suffix added and
is there a way to get rid it?
As far as I can see from the source code history, because it is the recommended
way to represent a date in JSON,
see http://jira.codehaus.org/browse/GEOS-4829
There is no way to get rid of it as of now, feel free to argue why zulu time is
not appropriate and eventually provide a patch to make this behavior configurable.
Cheers
Andrea
–
Ing. Andrea Aime
@geowolf
Technical Lead
GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549
http://www.geo-solutions.it
http://twitter.com/geosolutions_it
Hi Andrea,
GEOS-4829 is about making the date en time formatting of json compliant with ISO 8601. For what i understand, do dates not have a time zone designator according to ISO 8601. Only time can have a time zone designator. That's why i think zulu shouldn't be in the date or it should be at least configurable.
regards,
Dirk-Jan
Op 17-1-2013 14:28, Andrea Aime schreef:
On Thu, Jan 17, 2013 at 1:58 PM, Dirk-Jan Bulsink <bulsink@anonymised.com <mailto:bulsink@anonymised.com>> wrote:
Hi,
In older versions of geoserver (like 2.0.2) was the format of the date
datatype in geojson "yyyy-mm-dd". In version 2.2.3 is a suffix "z"
added
to the format, so you get "yyyy-mm-ddz". Why is the 'z' suffix
added and
is there a way to get rid it?
As far as I can see from the source code history, because it is the recommended
way to represent a date in JSON,
see http://jira.codehaus.org/browse/GEOS-4829
There is no way to get rid of it as of now, feel free to argue why zulu time is
not appropriate and eventually provide a patch to make this behavior configurable.
Cheers
Andrea
--
Ing. Andrea Aime
@geowolf
Technical Lead
GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549
http://www.geo-solutions.it
http://twitter.com/geosolutions_it
-------------------------------------------------------