Modify ↓
#11097 closed defect (fixed)
Date field gets expanded to java .toString() format during shapefile import
Reported by: | StefanB | Owned by: | Don-vip |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Plugin opendata | Version: | tested |
Keywords: | template_report date shp shapefile iso | Cc: |
Description (last modified by )
What steps will reproduce the problem?
- Importa a .shp file with a date field in one of the fields into JOSM (sample attached)
- check the date tag in JOSM
- note that date tag was formatted 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 formatted in a OSM adopted standard ISO format, 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
Attachments (1)
Change History (6)
by , 10 years ago
Attachment: | raba82dissJosm.zip added |
---|
comment:1 by , 10 years ago
Description: | modified (diff) |
---|---|
Summary: | ISO date gets expanded to java .toString() format during shapefile import → Date field gets expanded to java .toString() format during shapefile import |
comment:2 by , 10 years ago
Workaround: have the field of text type with value as expected, not date type
comment:3 by , 10 years ago
Keywords: | date shp shapefile iso added |
---|
Note:
See TracTickets
for help on using tickets.
Sample shapefile