You can add the following event listener:
public class DateTimeEventListener : IPreUpdateEventListener,
IPreInsertEventListener
{
public bool OnPreUpdate(PreUpdateEvent e)
{
foreach (var value in e.State)
if (value is DateTime && ((DateTime)value).Kind != DateTimeKind.Utc)
throw new Exception("Non-UTC DateTime used");
}
public bool OnPreInsert(PreInsertEvent e)
{ }
}
( , . )