<?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 Problem with time constraints in ArcGIS REST APIs and Services Questions</title>
    <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/problem-with-time-constraints/m-p/468032#M2210</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, I am currently trying to build an app with the ArcGIS REST API, but when I provide time informations on my orders, I get this warning: "&lt;SPAN class=""&gt;&lt;SPAN class="" data-link-actor-id="server0.conn0.child2/obj862"&gt;Depots, Routes, Orders and Breaks contain a mixture of time windows with dates and time windows without dates.&lt;/SPAN&gt;&lt;/SPAN&gt;" and the answer is empty. I am using php to send my request, here are the values in it:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN class=""&gt;array:7&lt;/SPAN&gt; [&lt;A title="[Ctrl+click] Expand all children" target="_blank"&gt;&lt;SPAN&gt;▼&lt;/SPAN&gt;&lt;/A&gt;&lt;SAMP class="" data-depth="1"&gt;  "&lt;SPAN class=""&gt;f&lt;/SPAN&gt;" =&amp;gt; "&lt;SPAN class="" title="4 characters"&gt;json&lt;/SPAN&gt;"   "&lt;SPAN class=""&gt;token&lt;/SPAN&gt;" =&amp;gt; "my-token"   "&lt;SPAN class=""&gt;distance_units&lt;/SPAN&gt;" =&amp;gt; "&lt;SPAN class="" title="10 characters"&gt;Kilometers&lt;/SPAN&gt;"   "&lt;SPAN class=""&gt;depots&lt;/SPAN&gt;" =&amp;gt; "&lt;SPAN class="" title="112 characters"&gt;{"type":"features","features":[{"attributes":{"Name":"Principal"},"geometry":{"x":6.08665833,"y":46.22100291}}]}&lt;/SPAN&gt;"   "&lt;SPAN class=""&gt;routes&lt;/SPAN&gt;" =&amp;gt; "&lt;SPAN class="" title="130 characters"&gt;{"features":[{"attributes":{"Name":"Route 2","Description":"vehicle 2","StartDepotName":"Principal","EndDepotName":"Principal"}}]}&lt;/SPAN&gt;"   "&lt;SPAN class=""&gt;orders&lt;/SPAN&gt;" =&amp;gt; "&lt;SPAN class="" title="314 characters"&gt;&lt;SPAN class=""&gt;{"features":[{"attributes":{"Name":1,"TimeWindowStart1":1589263200000,"TimeWindowEnd1":1589299200000,"ServiceTime":5},"geometry":{"x":6.15704505,"y":46.20184027&lt;A title="154 remaining characters" target="_blank"&gt; &lt;IMG class="jive_emoji" src="https://community.esri.com/images/emojis/25b6.png" /&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;"   "&lt;SPAN class=""&gt;default_date&lt;/SPAN&gt;" =&amp;gt; &lt;SPAN class=""&gt;1589234400000&lt;/SPAN&gt;&lt;/SAMP&gt;]

&lt;/PRE&gt;&lt;P&gt;I'm using strtotime() * 1000 to get the unix timestamp with miliseconds.&lt;/P&gt;&lt;P&gt;Is there something wrong with the formats of my dates? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 20:44:33 GMT</pubDate>
    <dc:creator>FabianHuber</dc:creator>
    <dc:date>2021-12-11T20:44:33Z</dc:date>
    <item>
      <title>Problem with time constraints</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/problem-with-time-constraints/m-p/468032#M2210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, I am currently trying to build an app with the ArcGIS REST API, but when I provide time informations on my orders, I get this warning: "&lt;SPAN class=""&gt;&lt;SPAN class="" data-link-actor-id="server0.conn0.child2/obj862"&gt;Depots, Routes, Orders and Breaks contain a mixture of time windows with dates and time windows without dates.&lt;/SPAN&gt;&lt;/SPAN&gt;" and the answer is empty. I am using php to send my request, here are the values in it:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN class=""&gt;array:7&lt;/SPAN&gt; [&lt;A title="[Ctrl+click] Expand all children" target="_blank"&gt;&lt;SPAN&gt;▼&lt;/SPAN&gt;&lt;/A&gt;&lt;SAMP class="" data-depth="1"&gt;  "&lt;SPAN class=""&gt;f&lt;/SPAN&gt;" =&amp;gt; "&lt;SPAN class="" title="4 characters"&gt;json&lt;/SPAN&gt;"   "&lt;SPAN class=""&gt;token&lt;/SPAN&gt;" =&amp;gt; "my-token"   "&lt;SPAN class=""&gt;distance_units&lt;/SPAN&gt;" =&amp;gt; "&lt;SPAN class="" title="10 characters"&gt;Kilometers&lt;/SPAN&gt;"   "&lt;SPAN class=""&gt;depots&lt;/SPAN&gt;" =&amp;gt; "&lt;SPAN class="" title="112 characters"&gt;{"type":"features","features":[{"attributes":{"Name":"Principal"},"geometry":{"x":6.08665833,"y":46.22100291}}]}&lt;/SPAN&gt;"   "&lt;SPAN class=""&gt;routes&lt;/SPAN&gt;" =&amp;gt; "&lt;SPAN class="" title="130 characters"&gt;{"features":[{"attributes":{"Name":"Route 2","Description":"vehicle 2","StartDepotName":"Principal","EndDepotName":"Principal"}}]}&lt;/SPAN&gt;"   "&lt;SPAN class=""&gt;orders&lt;/SPAN&gt;" =&amp;gt; "&lt;SPAN class="" title="314 characters"&gt;&lt;SPAN class=""&gt;{"features":[{"attributes":{"Name":1,"TimeWindowStart1":1589263200000,"TimeWindowEnd1":1589299200000,"ServiceTime":5},"geometry":{"x":6.15704505,"y":46.20184027&lt;A title="154 remaining characters" target="_blank"&gt; &lt;IMG class="jive_emoji" src="https://community.esri.com/images/emojis/25b6.png" /&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;"   "&lt;SPAN class=""&gt;default_date&lt;/SPAN&gt;" =&amp;gt; &lt;SPAN class=""&gt;1589234400000&lt;/SPAN&gt;&lt;/SAMP&gt;]

&lt;/PRE&gt;&lt;P&gt;I'm using strtotime() * 1000 to get the unix timestamp with miliseconds.&lt;/P&gt;&lt;P&gt;Is there something wrong with the formats of my dates? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 20:44:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/problem-with-time-constraints/m-p/468032#M2210</guid>
      <dc:creator>FabianHuber</dc:creator>
      <dc:date>2021-12-11T20:44:33Z</dc:date>
    </item>
  </channel>
</rss>

