<?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: Trying to set preferredTimeReference in sddraft file when creating a feature service in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/trying-to-set-preferredtimereference-in-sddraft/m-p/1659690#M74801</link>
    <description>&lt;P&gt;Ah that's a shame. Another option is to use the ArcGIS API for Python after the Feature Service is published and update necessary properties.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 22 Oct 2025 16:53:30 GMT</pubDate>
    <dc:creator>Clubdebambos</dc:creator>
    <dc:date>2025-10-22T16:53:30Z</dc:date>
    <item>
      <title>Trying to set preferredTimeReference in sddraft file when creating a feature service</title>
      <link>https://community.esri.com/t5/python-questions/trying-to-set-preferredtimereference-in-sddraft/m-p/1659505#M74795</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a script that automates generating feature services.&amp;nbsp; It all works great except I cannot figure out how to set one property.&amp;nbsp; The feature service has a setting for the preferred time zone for display&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JoeHershman_0-1761091432767.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/142346i4974139455D4735F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JoeHershman_0-1761091432767.png" alt="JoeHershman_0-1761091432767.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Which also shows up in the layer definition if it is set&lt;/P&gt;&lt;LI-CODE lang="java"&gt; "preferredTimeReference": {
  "timeZone": "Eastern Standard Time",
  "respectsDaylightSaving": true
 },&lt;/LI-CODE&gt;&lt;P&gt;I cannot figure out what the name of this setting should be in the sddraft properties.&amp;nbsp; I have tried many variations and it always comes in null.&amp;nbsp; I assume it is setting of another property set along with everything else, but not matter what I try, for example:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;PropertySetProperty xsi:type="typens:PropertySetProperty"&amp;gt;
	&amp;lt;Key&amp;gt;preferredTimezoneID&amp;lt;/Key&amp;gt;
	&amp;lt;Value xsi:type="xs:string"&amp;gt;UTC&amp;lt;/Value&amp;gt;
&amp;lt;/PropertySetProperty&amp;gt;
&amp;lt;PropertySetProperty xsi:type="typens:PropertySetProperty"&amp;gt;
	&amp;lt;Key&amp;gt;preferredTimezoneIDDaylightSavingTime&amp;lt;/Key&amp;gt;
	&amp;lt;Value xsi:type="xs:string"&amp;gt;true&amp;lt;/Value&amp;gt;
&amp;lt;/PropertySetProperty&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It comes in null in my feature layer definition.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Does anyone know what the correct setting names are?&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;We are stuck at Pro 3.3 for now, so I cannot use the new features added in 3.4 that would allow me to set via properties.&lt;/P&gt;&lt;P&gt;As a suggestion, it will be really nice if pro allowed you to save out an sddraft, like you could in ArcMap&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Oct 2025 00:11:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/trying-to-set-preferredtimereference-in-sddraft/m-p/1659505#M74795</guid>
      <dc:creator>JoeHershman</dc:creator>
      <dc:date>2025-10-22T00:11:19Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to set preferredTimeReference in sddraft file when creating a feature service</title>
      <link>https://community.esri.com/t5/python-questions/trying-to-set-preferredtimereference-in-sddraft/m-p/1659543#M74796</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/7529"&gt;@JoeHershman&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Here is what I extracted from the .sddraft file&lt;/P&gt;&lt;LI-CODE lang="markdown"&gt;&amp;lt;PropertySetProperty xsi:type='typens:PropertySetProperty'&amp;gt;
	&amp;lt;Key&amp;gt;preferredTimeZoneRespectsDayLightSavingTime&amp;lt;/Key&amp;gt;
	&amp;lt;Value xsi:type='xs:string'&amp;gt;true&amp;lt;/Value&amp;gt;
&amp;lt;/PropertySetProperty&amp;gt;
&amp;lt;PropertySetProperty xsi:type='typens:PropertySetProperty'&amp;gt;
	&amp;lt;Key&amp;gt;preferredTimeZoneID&amp;lt;/Key&amp;gt;
	&amp;lt;Value xsi:type='xs:string'&amp;gt;GMT Standard Time&amp;lt;/Value&amp;gt;
&amp;lt;/PropertySetProperty&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;All the best,&lt;/P&gt;&lt;P&gt;Glen&lt;/P&gt;</description>
      <pubDate>Wed, 22 Oct 2025 09:04:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/trying-to-set-preferredtimereference-in-sddraft/m-p/1659543#M74796</guid>
      <dc:creator>Clubdebambos</dc:creator>
      <dc:date>2025-10-22T09:04:37Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to set preferredTimeReference in sddraft file when creating a feature service</title>
      <link>https://community.esri.com/t5/python-questions/trying-to-set-preferredtimereference-in-sddraft/m-p/1659684#M74800</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/417766"&gt;@Clubdebambos&lt;/a&gt;&amp;nbsp;thanks for the reply.&amp;nbsp; Unfortunately those are still not working.&amp;nbsp; I am wondering if they changed something past 3.3 when they modified arcpy.&amp;nbsp;&lt;/P&gt;&lt;P&gt;My sddraft looks like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;PropertySetProperty xsi:type="typens:PropertySetProperty"&amp;gt;
	&amp;lt;Key&amp;gt;preferredTimeZoneRespectsDayLightSavingTime&amp;lt;/Key&amp;gt;
	&amp;lt;Value xsi:type="xs:string"&amp;gt;true&amp;lt;/Value&amp;gt;
&amp;lt;/PropertySetProperty&amp;gt;
&amp;lt;PropertySetProperty xsi:type="typens:PropertySetProperty"&amp;gt;
	&amp;lt;Key&amp;gt;preferredTimeZoneID&amp;lt;/Key&amp;gt;
	&amp;lt;Value xsi:type="xs:string"&amp;gt;UTC&amp;lt;/Value&amp;gt;
&amp;lt;/PropertySetProperty&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;But still&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt; "datesInUnknownTimezone": false,
 "dateFieldsTimeReference": {
  "timeZone": "UTC",
  "respectsDaylightSaving": false
 },
 "preferredTimeReference": null,
 "types": [&lt;/LI-CODE&gt;&lt;P&gt;Just to confirm these properties are part of the property set that goes with the FeatureServer as below&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;SVCExtension xsi:type="typens:SVCExtension"&amp;gt;
	&amp;lt;Enabled&amp;gt;true&amp;lt;/Enabled&amp;gt;
	&amp;lt;Info xsi:type="typens:PropertySet"&amp;gt;
		&amp;lt;PropertyArray xsi:type="typens:ArrayOfPropertySetProperty"&amp;gt;
			&amp;lt;PropertySetProperty xsi:type="typens:PropertySetProperty"&amp;gt;
				&amp;lt;Key&amp;gt;WebEnabled&amp;lt;/Key&amp;gt;
				&amp;lt;Value xsi:type="xs:string"&amp;gt;true&amp;lt;/Value&amp;gt;
			&amp;lt;/PropertySetProperty&amp;gt;
			&amp;lt;PropertySetProperty xsi:type="typens:PropertySetProperty"&amp;gt;
				&amp;lt;Key&amp;gt;WebCapabilities&amp;lt;/Key&amp;gt;
				&amp;lt;Value xsi:type="xs:string"&amp;gt;Create,Sync,Query,Update,Delete,Uploads&amp;lt;/Value&amp;gt;
			&amp;lt;/PropertySetProperty&amp;gt;
		&amp;lt;/PropertyArray&amp;gt;
	&amp;lt;/Info&amp;gt;
	&amp;lt;Props xsi:type="typens:PropertySet"&amp;gt;
		&amp;lt;PropertyArray xsi:type="typens:ArrayOfPropertySetProperty"&amp;gt;
			&amp;lt;PropertySetProperty xsi:type="typens:PropertySetProperty"&amp;gt;
				&amp;lt;Key&amp;gt;maxRecordCount&amp;lt;/Key&amp;gt;
				&amp;lt;Value xsi:type="xs:string"&amp;gt;2000&amp;lt;/Value&amp;gt;
			&amp;lt;/PropertySetProperty&amp;gt;
			&amp;lt;PropertySetProperty xsi:type="typens:PropertySetProperty"&amp;gt;
				&amp;lt;Key&amp;gt;enableZDefaults&amp;lt;/Key&amp;gt;
				&amp;lt;Value xsi:type="xs:string"&amp;gt;true&amp;lt;/Value&amp;gt;
			&amp;lt;/PropertySetProperty&amp;gt;
			&amp;lt;PropertySetProperty xsi:type="typens:PropertySetProperty"&amp;gt;
				&amp;lt;Key&amp;gt;zDefaultValue&amp;lt;/Key&amp;gt;
				&amp;lt;Value xsi:type="xs:string"&amp;gt;0&amp;lt;/Value&amp;gt;
			&amp;lt;/PropertySetProperty&amp;gt;
			&amp;lt;PropertySetProperty xsi:type="typens:PropertySetProperty"&amp;gt;
				&amp;lt;Key&amp;gt;editorTrackingTimeZoneID&amp;lt;/Key&amp;gt;
				&amp;lt;Value xsi:type="xs:string"&amp;gt;UTC&amp;lt;/Value&amp;gt;
			&amp;lt;/PropertySetProperty&amp;gt;
			&amp;lt;PropertySetProperty xsi:type="typens:PropertySetProperty"&amp;gt;
				&amp;lt;Key&amp;gt;editorTrackingRespectsDayLightSavingTime&amp;lt;/Key&amp;gt;
				&amp;lt;Value xsi:type="xs:string"&amp;gt;true&amp;lt;/Value&amp;gt;
			&amp;lt;/PropertySetProperty&amp;gt;
			&amp;lt;PropertySetProperty xsi:type="typens:PropertySetProperty"&amp;gt;
				&amp;lt;Key&amp;gt;editorTrackingTimeInUTC&amp;lt;/Key&amp;gt;
				&amp;lt;Value xsi:type="xs:string"&amp;gt;true&amp;lt;/Value&amp;gt;
			&amp;lt;/PropertySetProperty&amp;gt;
			&amp;lt;!-- Properties removed for brevity --&amp;gt;
			&amp;lt;PropertySetProperty xsi:type="typens:PropertySetProperty"&amp;gt;
				&amp;lt;Key&amp;gt;preferredTimeZoneRespectsDayLightSavingTime&amp;lt;/Key&amp;gt;
				&amp;lt;Value xsi:type="xs:string"&amp;gt;true&amp;lt;/Value&amp;gt;
			&amp;lt;/PropertySetProperty&amp;gt;
			&amp;lt;PropertySetProperty xsi:type="typens:PropertySetProperty"&amp;gt;
				&amp;lt;Key&amp;gt;preferredTimeZoneID&amp;lt;/Key&amp;gt;
				&amp;lt;Value xsi:type="xs:string"&amp;gt;UTC&amp;lt;/Value&amp;gt;
			&amp;lt;/PropertySetProperty&amp;gt;
		&amp;lt;/PropertyArray&amp;gt;
	&amp;lt;/Props&amp;gt;
	&amp;lt;TypeName&amp;gt;FeatureServer&amp;lt;/TypeName&amp;gt;
&amp;lt;/SVCExtension&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;I have successfully added and modified other properties, so it makes me feel like I am not getting an exact match on this property name&lt;/P&gt;</description>
      <pubDate>Wed, 22 Oct 2025 16:43:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/trying-to-set-preferredtimereference-in-sddraft/m-p/1659684#M74800</guid>
      <dc:creator>JoeHershman</dc:creator>
      <dc:date>2025-10-22T16:43:48Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to set preferredTimeReference in sddraft file when creating a feature service</title>
      <link>https://community.esri.com/t5/python-questions/trying-to-set-preferredtimereference-in-sddraft/m-p/1659690#M74801</link>
      <description>&lt;P&gt;Ah that's a shame. Another option is to use the ArcGIS API for Python after the Feature Service is published and update necessary properties.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Oct 2025 16:53:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/trying-to-set-preferredtimereference-in-sddraft/m-p/1659690#M74801</guid>
      <dc:creator>Clubdebambos</dc:creator>
      <dc:date>2025-10-22T16:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to set preferredTimeReference in sddraft file when creating a feature service</title>
      <link>https://community.esri.com/t5/python-questions/trying-to-set-preferredtimereference-in-sddraft/m-p/1659695#M74802</link>
      <description>&lt;P&gt;That is a thought, I am already using arcgis to get the item ids of the newly created portal items, might as well throw in some json manipulation to make it worth my while&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Oct 2025 17:03:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/trying-to-set-preferredtimereference-in-sddraft/m-p/1659695#M74802</guid>
      <dc:creator>JoeHershman</dc:creator>
      <dc:date>2025-10-22T17:03:09Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to set preferredTimeReference in sddraft file when creating a feature service</title>
      <link>https://community.esri.com/t5/python-questions/trying-to-set-preferredtimereference-in-sddraft/m-p/1659786#M74803</link>
      <description>&lt;P&gt;This seemed easy enough.&amp;nbsp; But from what I can see I cannot modify the feature service json with python when the service is on a federated server.&amp;nbsp; This only seems possible on a hosted service.&amp;nbsp; Really annoying, this seems like it should be a simple thing to do&lt;/P&gt;</description>
      <pubDate>Wed, 22 Oct 2025 20:42:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/trying-to-set-preferredtimereference-in-sddraft/m-p/1659786#M74803</guid>
      <dc:creator>JoeHershman</dc:creator>
      <dc:date>2025-10-22T20:42:28Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to set preferredTimeReference in sddraft file when creating a feature service</title>
      <link>https://community.esri.com/t5/python-questions/trying-to-set-preferredtimereference-in-sddraft/m-p/1660135#M74809</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/417766"&gt;@Clubdebambos&lt;/a&gt;&amp;nbsp;decided to just update a machine to 3.4.&amp;nbsp; Much easier now&lt;/P&gt;</description>
      <pubDate>Thu, 23 Oct 2025 19:16:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/trying-to-set-preferredtimereference-in-sddraft/m-p/1660135#M74809</guid>
      <dc:creator>JoeHershman</dc:creator>
      <dc:date>2025-10-23T19:16:59Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to set preferredTimeReference in sddraft file when creating a feature service</title>
      <link>https://community.esri.com/t5/python-questions/trying-to-set-preferredtimereference-in-sddraft/m-p/1660140#M74810</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/7529"&gt;@JoeHershman&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Sometimes the easiest fix is an updated version. Hopefully you're on Easy Street now!&lt;/P&gt;</description>
      <pubDate>Thu, 23 Oct 2025 19:22:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/trying-to-set-preferredtimereference-in-sddraft/m-p/1660140#M74810</guid>
      <dc:creator>Clubdebambos</dc:creator>
      <dc:date>2025-10-23T19:22:15Z</dc:date>
    </item>
  </channel>
</rss>

