Yes, It looks like the service was closed before the automation started. The weird thing is that this automation was created using the UI, not directly at YAML. You can select as trigger when HA is shutdown and then as action you can select the service input_datetime.set_datetime.
The Automation Editor allows you to compose whatever you want. It only ensures the syntax is correct, nothing else (i.e. it doesn’t check for logic errors which means it doesn’t confirm your choices of triggers, conditions and actions is logically correct).
Based on the posted Github Issue, it appears no one yet knows the answer to that question.