@@ -42,7 +42,7 @@ public AuditConfiguration()
4242 IsAuditedDictionary = new ConcurrentDictionary < string , bool > ( ) ;
4343 ValueFormatterDictionary = new ConcurrentDictionary < string , Func < object , object > > ( ) ;
4444
45-
45+ UseCoordinatedUniversalTime = false ;
4646#if EF5 || EF6
4747 UseNullForDBNullValue = true ;
4848#endif
@@ -129,6 +129,10 @@ public AuditConfiguration()
129129 /// <value>True if exclude relationship if one excluded, false if not.</value>
130130 public bool ExcludeRelationshipIfOneExcluded { get ; set ; }
131131
132+ /// <summary>Gets or sets a value determining if Coordinated Universal Time (UTC) should be used instead of local time.</summary>
133+ /// <value>true if UTC, false if local</value>
134+ public bool UseCoordinatedUniversalTime { get ; set ; }
135+
132136#if EF5 || EF6
133137 /// <summary>
134138 /// Gets or sets a value indicating whether null value should be used in the Audit instead of DBNull.Value
@@ -163,6 +167,7 @@ public AuditConfiguration Clone()
163167 SoftAddedPredicates = new List < Func < object , bool > > ( SoftAddedPredicates ) ,
164168 SoftDeletedPredicates = new List < Func < object , bool > > ( SoftDeletedPredicates ) ,
165169 ExcludeRelationshipIfOneExcluded = ExcludeRelationshipIfOneExcluded ,
170+ UseCoordinatedUniversalTime = UseCoordinatedUniversalTime ,
166171#if EF5 || EF6
167172 UseNullForDBNullValue = UseNullForDBNullValue
168173#endif
0 commit comments