Checks if two dates differ only by a timezone-like shift.
Returns true if the difference is EXACTLY a whole number of hours
(no variance in minutes/seconds/milliseconds) and within 23 hours.
This helps detect timezone interpretation issues with datetime/datetime2 fields
that don't store timezone information.
Parameters
date1: Date
The first date to compare
date2: Date
The second date to compare
Returns boolean
true if the dates differ only by a whole-hour timezone shift (1-23 hours)
Checks if two dates differ only by a timezone-like shift. Returns true if the difference is EXACTLY a whole number of hours (no variance in minutes/seconds/milliseconds) and within 23 hours. This helps detect timezone interpretation issues with datetime/datetime2 fields that don't store timezone information.