I have the below script just to simply subtract 15 minutes from a datetime helper, but for some reason as well as doing that it's adding an hour. I'm in BST which is UTC+1 so that must be where it's coming from, but I have no idea why???
I'm reading the current value as a timestamp and setting it in the action as a timestamp, the UNIX epoch shouldn't move depending on timezone!
action: input_datetime.set_datetime metadata: {} data: timestamp: >- {{state_attr('input_datetime.next_morning_alarm', 'timestamp') - 900}} target: entity_id: input_datetime.next_morning_alarm