In ArcGIS Online, date values are unexpectedly converted to an unrecognized format when exporting hosted feature service to GeoJSON.
上次发布: November 23, 2016ArcGIS Online
漏洞 ID 编号
BUG-000098863
已提交
August 24, 2016
上次修改时间
August 21, 2020
适用范围
ArcGIS Online
找到的版本
4.2
服务器平台
Windows
客户端平台
8
Version Fixed
4.4
状态
Fixed
此漏洞已得到修复。 有关详细信息,请参阅“版本修复”和“其他信息”(如果适用)。
解决办法
Workaround 1: Export to a different format other than GeoJSON. For example, testing shows that this date value conversion issue does not occur when exporting a hosted feature layer to CSV.
Workaround 2: Post-process the exported GeoJSON to convert the big integer values back into acceptable date values.
Additional information:
- Note that neither GeoJSON nor JSON specify how dates should be represented.
- Note that JavaScript does specify how dates must be formatted in JSON, as indicated by the Date object’s toJSON method: 2012-04-23T18:25:43.511Z
- Whatever format dates are converted into during Export to GeoJSON should be human-readable, recognizable, and able to be re-converted back into Date values when re-imported into ArcGIS Online.