<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Date error using feature set save in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/date-error-using-feature-set-save/m-p/847881#M3733</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are using&amp;nbsp;a hosted feature layer that contains dates prior to 1900. I am using the ArcGIS Python API to save a queried feature set ( featureset.save() ) from this layer to a local geodatabase for analysis. All dates prior to the year 1900 are incorrect in the locally saved feature class. All other dates are saved with their correct UTC time. Using the Export Data option from the hosted feature layer using AGOL returns the correct results. Has anyone else experienced this,&amp;nbsp;or know if this is a bug?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Jun 2019 19:34:36 GMT</pubDate>
    <dc:creator>AdamMesser1</dc:creator>
    <dc:date>2019-06-05T19:34:36Z</dc:date>
    <item>
      <title>Date error using feature set save</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/date-error-using-feature-set-save/m-p/847881#M3733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are using&amp;nbsp;a hosted feature layer that contains dates prior to 1900. I am using the ArcGIS Python API to save a queried feature set ( featureset.save() ) from this layer to a local geodatabase for analysis. All dates prior to the year 1900 are incorrect in the locally saved feature class. All other dates are saved with their correct UTC time. Using the Export Data option from the hosted feature layer using AGOL returns the correct results. Has anyone else experienced this,&amp;nbsp;or know if this is a bug?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jun 2019 19:34:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/date-error-using-feature-set-save/m-p/847881#M3733</guid>
      <dc:creator>AdamMesser1</dc:creator>
      <dc:date>2019-06-05T19:34:36Z</dc:date>
    </item>
    <item>
      <title>Re: Date error using feature set save</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/date-error-using-feature-set-save/m-p/847882#M3734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Adam, this is David -- We talked at UC2019 this year. Can you help me in giving some reproducible code? I tried to reproduce this morning but was unable to. This is what I did -- notice the `date` field has a value of 1899-10-06T23:56:15.040Z. Was this how your time was formatted?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; import pandas as pd&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; from arcgis.features import Feature, FeatureSet&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; before_feature = Feature.from_dict({"geometry": {"x": -146.49779999999998, "y": 68.87620000000004, "spatialReference": {"wkid": 4326, "latestWkid": 4326}}, "attributes": {"OBJECTID": 1, "date": "1899-10-06T23:56:15.040Z", "depth": 4.5, "depthError": 0.2, "dmin": "", "gap": "", "horizontalError": "", "id": "ak16328849", "latitude": 68.8762, "locationSource": "ak", "longitude": -146.4978, "mag": 2.5, "magError": "", "magNst": "", "magSource": "ak", "magType": "ml", "net": "ak", "nst": "", "place": "92km NNW of Arctic Village, Alaska", "rms": 0.49, "status": "reviewed", "time": "00:11:44.917Z", "type": "earthquake", "updated": "2017-10-06T23:56:15.040Z"}})&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; before_featureset = FeatureSet([before_feature,])&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; before_featureset.save(r"in_memory", "test1234")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #-------------------------------------------&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; after_featureset = pd.DataFrame.spatial.from_featureclass(r"in_memory\test1234").spatial.to_featureset()&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; print(after_featureset.features)&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jul 2019 22:13:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/date-error-using-feature-set-save/m-p/847882#M3734</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2019-07-12T22:13:47Z</dc:date>
    </item>
  </channel>
</rss>

