added fix for TruncateTime method of EF