Пример #1
0
        public override void SetData(object value)
        {
            // This conversion makes sure that the date we handle is in UTC format (e.g. if
            // the developer provides DateTime.Now, which is in local time by default).
            if (value is DateTime)
            {
                value = RepositoryTools.ConvertToUtcDateTime((DateTime)value);
            }

            base.SetData(value);
        }