<?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: datetime data changes when saving my data using arc.write in R-ArcGIS Questions</title>
    <link>https://community.esri.com/t5/r-arcgis-questions/datetime-data-changes-when-saving-my-data-using/m-p/1235691#M405</link>
    <description>&lt;P&gt;Never tried writing datetimes with the arcgisbindings package, however, I have had lots of experience writing data to .csv.&amp;nbsp; R's default behavior is to read datetimes in in local time and write them out in UTC.&amp;nbsp; I'd recommend forcing the time zone to UTC following import.&amp;nbsp; I frequently use lubridate::force_tz("UTC"), however you can do similar in base R.&amp;nbsp; Hope this helps and good luck!&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 28 Nov 2022 22:49:04 GMT</pubDate>
    <dc:creator>cmichaud</dc:creator>
    <dc:date>2022-11-28T22:49:04Z</dc:date>
    <item>
      <title>datetime data changes when saving my data using arc.write</title>
      <link>https://community.esri.com/t5/r-arcgis-questions/datetime-data-changes-when-saving-my-data-using/m-p/1235579#M404</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I pulled data that I collected using Survey123 from the cloud by using the R-bridge; I needed to perform quality control for some&lt;SPAN&gt;&amp;nbsp;attributes. During my QC, the datetime field was not touched. Now, I am using arc.write to save my final product in a feature class on a local GDB, but then I note that while the dates are correct, the time is showing like the process of saving added 6 hrs.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;So, for example, my first survey record started at 14:42 PM, and this was correct before I saved the feature dataset. After saving, ArcGIS Pro, indicates that the same record was collected at 20:42 (8:42 PM). How can I preserve the correct time? Is there any argument within arc.write() that I need to set?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Nov 2022 19:40:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/r-arcgis-questions/datetime-data-changes-when-saving-my-data-using/m-p/1235579#M404</guid>
      <dc:creator>AiryPeralta1</dc:creator>
      <dc:date>2022-11-28T19:40:56Z</dc:date>
    </item>
    <item>
      <title>Re: datetime data changes when saving my data using arc.write</title>
      <link>https://community.esri.com/t5/r-arcgis-questions/datetime-data-changes-when-saving-my-data-using/m-p/1235691#M405</link>
      <description>&lt;P&gt;Never tried writing datetimes with the arcgisbindings package, however, I have had lots of experience writing data to .csv.&amp;nbsp; R's default behavior is to read datetimes in in local time and write them out in UTC.&amp;nbsp; I'd recommend forcing the time zone to UTC following import.&amp;nbsp; I frequently use lubridate::force_tz("UTC"), however you can do similar in base R.&amp;nbsp; Hope this helps and good luck!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Nov 2022 22:49:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/r-arcgis-questions/datetime-data-changes-when-saving-my-data-using/m-p/1235691#M405</guid>
      <dc:creator>cmichaud</dc:creator>
      <dc:date>2022-11-28T22:49:04Z</dc:date>
    </item>
    <item>
      <title>Re: datetime data changes when saving my data using arc.write</title>
      <link>https://community.esri.com/t5/r-arcgis-questions/datetime-data-changes-when-saving-my-data-using/m-p/1236074#M406</link>
      <description>I would venture to guess the time is stored as UTC and converted to local time during the process. Similarly, when viewing data in ArcGIS Pro it is in UTC and when viewed in a web map time is showing in local time.&lt;BR /&gt;</description>
      <pubDate>Tue, 29 Nov 2022 18:26:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/r-arcgis-questions/datetime-data-changes-when-saving-my-data-using/m-p/1236074#M406</guid>
      <dc:creator>AndrewPadilla</dc:creator>
      <dc:date>2022-11-29T18:26:04Z</dc:date>
    </item>
  </channel>
</rss>

