When I look in my database, the Date field of the Connections table, wich type is DateTime, has the value 2012-03-01 01:49:02.097.
But when I want to check if the user connected in the last hour :
if (user.Connections.Max(t => t.Date).Date.AddHours(1) > DateTime.Now)
The time part of the Date is always zero.
So my code only works between midnight and 1 hour in the morning haha!
Thanks for the help!