What's wrong with this SQL time zone filter?

What's wrong with this SQL time zone filter in reporting. The SQL code compares a local time to UTC stored timestamps, so boundaries shift by hours. In SQL analytics this miscounts events.

#whatswrongwiththissqlquery #sqlbug #sqlproductionbug #sqldebugging #sqldatabase #sqlcodereview #sqlperformance #sqlreliability #sqlanalytics #sqldataintegrity #sqlengineering #sqltimezonebug #sqldatetime #sqlreporti...

https://www.youtube.com/watch?v=eQPRVQ9ur7Y

Whats wrong with this SQL time zone filter? #sqldatetime

YouTube