bug fix incorrect time conditional due to timezone difference