I've came across an odd problem while comparing dates (actually smalldatetime) in SQL Server. It seems like there is a 30 seconds offset/bias while comparing dates close to the end of the day:
This is correct:
But this is definitely not correct:
What is happening here? Is math broken?