Skip to content

Commit

Permalink
Merge pull request #4913 from dfe-analytical-services/EES-5183
Browse files Browse the repository at this point in the history
EES-5183 Use UTC for ReleaseFiles.Published
  • Loading branch information
mmyoungman authored May 30, 2024
2 parents 324d83c + c9336d4 commit bc9f78f
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,11 @@ private static void ConfigureReleaseFile(ModelBuilder modelBuilder)
.HasConversion(
v => JsonConvert.SerializeObject(v),
v => JsonConvert.DeserializeObject<List<IndicatorGroupSequenceEntry>>(v));
entity.Property(rf => rf.Published)
.HasConversion(v => v,
v => v.HasValue
? DateTime.SpecifyKind(v.Value, DateTimeKind.Utc)
: null);
});
}

Expand Down

0 comments on commit bc9f78f

Please sign in to comment.