<?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 Re: spatial.to_featurelayer strips time resulting in data loss in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/spatial-to-featurelayer-strips-time-resulting-in/m-p/1042877#M5871</link>
    <description>&lt;P&gt;That's a good shout. I was using AGOL Notebooks, which I kinda assumed had the latest version. Lesson 1, check, don't trust.&lt;/P&gt;&lt;P&gt;AGOL Notebooks is on 1.8.1, and to_featurelayer creates a shapefile. Running a Pro Notebook shows 1.8.3, and to_featurelayer creates a gdb in AGOL, solving this issue.&lt;/P&gt;&lt;P&gt;I will let ESRI support know, as I had raised a job with them first, they did not have the solultion, thanks for the suggestion.&lt;/P&gt;</description>
    <pubDate>Thu, 01 Apr 2021 14:14:43 GMT</pubDate>
    <dc:creator>martinschaefer1</dc:creator>
    <dc:date>2021-04-01T14:14:43Z</dc:date>
    <item>
      <title>spatial.to_featurelayer strips time resulting in data loss</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/spatial-to-featurelayer-strips-time-resulting-in/m-p/1042827#M5867</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Exporting a spatially enabled dataframe (SDF) to AGOL using spatial.to_featurelayer with a datetime column strips the time as it creates a shapefile and due to the way shapefiles handle dates. Alternative is to create a str column using strftime or to use the more cumbersome method of creating a csv item and publishing that, completely bypassing the SDF.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could&amp;nbsp; I suggest:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Adding a check to to_featurelayer, and either returning&amp;nbsp; a warning or converting the datetime to string&lt;/LI&gt;&lt;LI&gt;Adding a warning to the documentation&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Code to demonstrate the issue attached as .ypnb.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best wishes&lt;/P&gt;&lt;P&gt;M.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Apr 2021 12:10:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/spatial-to-featurelayer-strips-time-resulting-in/m-p/1042827#M5867</guid>
      <dc:creator>martinschaefer1</dc:creator>
      <dc:date>2021-04-01T12:10:27Z</dc:date>
    </item>
    <item>
      <title>Re: spatial.to_featurelayer strips time resulting in data loss</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/spatial-to-featurelayer-strips-time-resulting-in/m-p/1042838#M5868</link>
      <description>&lt;P&gt;What version of the api are you using?&lt;/P&gt;&lt;P&gt;There was a reported issue with datetime on their site&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Esri/arcgis-python-api/issues?q=is%3Aissue+is%3Aclosed" target="_blank"&gt;Issues · Esri/arcgis-python-api (github.com)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;But if it doesn't apply, then you should open an Issue on their github site&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Esri/arcgis-python-api/issues" target="_blank"&gt;Issues · Esri/arcgis-python-api (github.com)&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Apr 2021 12:47:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/spatial-to-featurelayer-strips-time-resulting-in/m-p/1042838#M5868</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2021-04-01T12:47:14Z</dc:date>
    </item>
    <item>
      <title>Re: spatial.to_featurelayer strips time resulting in data loss</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/spatial-to-featurelayer-strips-time-resulting-in/m-p/1042877#M5871</link>
      <description>&lt;P&gt;That's a good shout. I was using AGOL Notebooks, which I kinda assumed had the latest version. Lesson 1, check, don't trust.&lt;/P&gt;&lt;P&gt;AGOL Notebooks is on 1.8.1, and to_featurelayer creates a shapefile. Running a Pro Notebook shows 1.8.3, and to_featurelayer creates a gdb in AGOL, solving this issue.&lt;/P&gt;&lt;P&gt;I will let ESRI support know, as I had raised a job with them first, they did not have the solultion, thanks for the suggestion.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Apr 2021 14:14:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/spatial-to-featurelayer-strips-time-resulting-in/m-p/1042877#M5871</guid>
      <dc:creator>martinschaefer1</dc:creator>
      <dc:date>2021-04-01T14:14:43Z</dc:date>
    </item>
  </channel>
</rss>

