Skip to content

Commit d85743d

Browse files
committed
Merge branch 'hotfix/Save-Version-UTC' into develop
Ensured that new versions of topics are always saved using UTC, even if the local server isn't set to UTC. This isn't an issue for the Azure hosting environment, but it is frequently an issue for local development environments.
2 parents 1e9b1d5 + 4b30079 commit d85743d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

OnTopic.Data.Sql/SqlTopicRepository.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ public override int Save([NotNull]Topic topic, bool isRecursive = false, bool is
253253
/*------------------------------------------------------------------------------------------------------------------------
254254
| Establish dependencies
255255
\-----------------------------------------------------------------------------------------------------------------------*/
256-
var version = new SqlDateTime(DateTime.Now);
256+
var version = new SqlDateTime(DateTime.UtcNow);
257257
var unresolvedTopics = new List<Topic>();
258258

259259
using var connection = new SqlConnection(_connectionString);

0 commit comments

Comments
 (0)