I'm simply trying to update a Date field with the current time. Ultimately I want to create an attribute rule that will automatically update the Date when a feature gets edited thus I have to use Arcade.
The following arcade functions all return a date value in UTC (six hours ahead of Mountain Time Zone):
- Now() --- returns date and time in UTC
- Date() --- returns date and time in UTC
- Timestamp() --- this is supposed to return a UTC value so....
- ToLocal(Timestamp()) --- returns date and time in UTC
- Today() --- Returns today's date but also sets the time to 6:00:00 AM - I'm not sure how this would get handled when the local time is past 6:00 pm and UTC time actually changes to the next day, I can only assume it would set the day to tomorrow's date and still set the time to 6:00:00 AM
Python's datetime.datetime.now() works just fine
Several of the function descriptions say, "Creates a date value in the local or system time of the client." If the functions are actually working correctly what defines the client and how do I check its time setting?
It seems like it shouldn't be this difficult, am I missing something?
Any suggestions?
Edit: I've just tried this on my home computer with the same results.