Opened 7 years ago

Last modified 7 years ago

#11097 closed defect

ISO date gets expanded to java .toString() format during shapefile import — at Initial Version

Reported by: StefanB Owned by: Don-vip
Priority: normal Milestone:
Component: Plugin opendata Version: tested
Keywords: template_report date shp shapefile iso Cc:

Description

What steps will reproduce the problem?

  1. Importa a .shp file with iso date (yyyy-mm-dd) in one of the fields into JOSM (sample attached)
  2. check the date tag in JOSM
  3. note that date tag was expanded into default java format (eg: '2015-01-13' -> 'Tue Jan 13 00:00:00 CET 2015')

What is the expected result?

Tag value should be preserved exactly as it is in source, eg '2015-01-13'

What happens instead?

Date gets formatted into default java format: 'Tue Jan 13 00:00:00 CET 2015'

Please provide any additional information below. Attach a screenshot if possible.

Revision: 7995
Repository Root: http://josm.openstreetmap.de/svn
Relative URL: ^/trunk
Last Changed Author: Don-vip
Last Changed Date: 2015-01-31 15:17:59 +0100 (Sat, 31 Jan 2015)
Build-Date: 2015-02-01 02:33:54
URL: http://josm.openstreetmap.de/svn/trunk
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last Changed Rev: 7995

Identification: JOSM/1.5 (7995 en) Windows 7 64-Bit
Memory Usage: 573 MB / 1799 MB (37 MB allocated, but free)
Java version: 1.8.0_25, Oracle Corporation, Java HotSpot(TM) 64-Bit Server VM
VM arguments: [-Djava.security.manager, -Djava.security.policy=file:C:\Program Files\Java\jre1.8.0_25\lib\security\javaws.policy, -DtrustProxy=true, -Djnlpx.home=<java.home>\bin, -Djnlpx.origFilenameArg=C:\Users\stefan\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\56\1ee8cfb8-50c8d4e3, -Djnlpx.remove=false, -Djava.util.Arrays.useLegacyMergeSort=true, -Djnlpx.splashport=51003, -Djnlp.application.href=https://josm.openstreetmap.de/download/josm.jnlp, -Djnlpx.jvm=<java.home>\bin\javaw.exe, -Djnlpx.vmargs=LURqYXZhLnV0aWwuQXJyYXlzLnVzZUxlZ2FjeU1lcmdlU29ydD10cnVlAC1Eam5scC5hcHBsaWNhdGlvbi5ocmVmPWh0dHBzOi8vam9zbS5vcGVuc3RyZWV0bWFwLmRlL2Rvd25sb2FkL2pvc20uam5scAA=]
Dataset consistency test: No problems found

Plugins:
- SimplifyArea (30892)
- geotools (30892)
- jts (30892)
- opendata (30911)
- todo (29154)
- utilsplugin2 (30892)

Last errors/warnings:
- E: java.lang.NullPointerException

Change History (1)

Changed 7 years ago by StefanB

Attachment: raba82dissJosm.zip added

Sample shapefile

Note: See TracTickets for help on using tickets.