Hi,
I have a script that automates generating feature services. It all works great except I cannot figure out how to set one property. The feature service has a setting for the preferred time zone for display
Which also shows up in the layer definition if it is set
"preferredTimeReference": {
"timeZone": "Eastern Standard Time",
"respectsDaylightSaving": true
},
I cannot figure out what the name of this setting should be in the sddraft properties. I have tried many variations and it always comes in null. I assume it is setting of another property set along with everything else, but not matter what I try, for example:
<PropertySetProperty xsi:type="typens:PropertySetProperty">
<Key>preferredTimezoneID</Key>
<Value xsi:type="xs:string">UTC</Value>
</PropertySetProperty>
<PropertySetProperty xsi:type="typens:PropertySetProperty">
<Key>preferredTimezoneIDDaylightSavingTime</Key>
<Value xsi:type="xs:string">true</Value>
</PropertySetProperty>
It comes in null in my feature layer definition.
Does anyone know what the correct setting names are?
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.
As a suggestion, it will be really nice if pro allowed you to save out an sddraft, like you could in ArcMap
Hi @JoeHershman,
Here is what I extracted from the .sddraft file
<PropertySetProperty xsi:type='typens:PropertySetProperty'>
<Key>preferredTimeZoneRespectsDayLightSavingTime</Key>
<Value xsi:type='xs:string'>true</Value>
</PropertySetProperty>
<PropertySetProperty xsi:type='typens:PropertySetProperty'>
<Key>preferredTimeZoneID</Key>
<Value xsi:type='xs:string'>GMT Standard Time</Value>
</PropertySetProperty>
Hope that helps.
All the best,
Glen