[Geoserver-devel] [jira] Created: (GEOS-811) Troubles inserting datetime fields in transaction operation

Troubles inserting datetime fields in transaction operation
-----------------------------------------------------------

                 Key: GEOS-811
                 URL: http://jira.codehaus.org/browse/GEOS-811
             Project: GeoServer
          Issue Type: Improvement
          Components: WFS
    Affects Versions: 1.4.0-RC3, 1.3.4
            Reporter: Andrea Aime
         Assigned To: Andrea Aime
             Fix For: 1.4.1

Guessing the right text format for datetime fields in features served by geoserver is relatively difficult for a programmer, and basically impossible for a user.

From a code inspection, it seems gt2 TemporalAttributeType parses string values into dates using DateFormat.getInstance(), which is by api docs a SimpleDateFormat with both date and time in short format.

This is localed dependent, not suitable for all usages, and it's not written anywhere the user can have a look at.
For example, if geoserver is installed on a pc with italian locale, the format is (unless anything in geoserver startup changes
the locale, but I haven't seen anything relevant):
"dd/MM/yy H.mm"

This is obviosly not good for archeological GIS purposes for example (only 2 digits for the year).

As a stopgap measure, we should report what formats are used to parse dates, times and numbers so that
users know how to write GML for inserts.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira