I'm improving the code as I go, I've noticed that as well and made some other big changes
I had another version of this code, was using date/time for the locktime field and everything was working as intended
as soon as I switched to unixtime to not have to deal with format behavior, it stopped...