Getting error "please use a numerically indexed array" while attempting to format timestamp on a GET record

Hello, been searching far and wide and cannot find a viable solution for this issue. Any help would be greatly appreciate, I've been blocked on this one for days.

I successfully formatted the timestamp for a GET RECORDS endpoint, and everything works.

I need to do this for a GET RECORD endpoint though, as these "set times" are specific to each user, and will be used to set reminders on specific tasks. When replicated with this endpoint, I am seeing the error. I understand it has to do with the fact that a singular record, is not an array...but I'm not sure how to set up the function stack to work as I need. Can anyone help? Thank you!

2 replies