Ef truncatetime fix

Kindly review this commit for TruncateTime implementation for Npgsql Entity framework. I have also attempted to add a test case for that.