Time filter help

Hi
I was write a time filter.But ea start one hour late from starting time.I set 0 but it’s begin 1.Also I just wanna OPEN time not close time because positions will be open for a couple days

That is decompiled code