diff --git a/osu.Desktop.VisualTests/Tests/TestCaseResults.cs b/osu.Desktop.VisualTests/Tests/TestCaseResults.cs index aa3a117667..f8c93e9a73 100644 --- a/osu.Desktop.VisualTests/Tests/TestCaseResults.cs +++ b/osu.Desktop.VisualTests/Tests/TestCaseResults.cs @@ -47,7 +47,7 @@ namespace osu.Desktop.VisualTests.Tests Accuracy = 0.98, MaxCombo = 123, Rank = ScoreRank.A, - Date = DateTime.Now, + Date = DateTimeOffset.Now, Statistics = new Dictionary() { { "300", 50 }, diff --git a/osu.Game/Online/Chat/ErrorMessage.cs b/osu.Game/Online/Chat/ErrorMessage.cs index a410e9044a..48557ca648 100644 --- a/osu.Game/Online/Chat/ErrorMessage.cs +++ b/osu.Game/Online/Chat/ErrorMessage.cs @@ -12,7 +12,7 @@ namespace osu.Game.Online.Chat public ErrorMessage(string message) : base(errorId--) { - Timestamp = DateTime.Now; + Timestamp = DateTimeOffset.Now; Content = message; Sender = new User diff --git a/osu.Game/Rulesets/Scoring/Score.cs b/osu.Game/Rulesets/Scoring/Score.cs index 15d8690322..2cca0f54af 100644 --- a/osu.Game/Rulesets/Scoring/Score.cs +++ b/osu.Game/Rulesets/Scoring/Score.cs @@ -46,7 +46,7 @@ namespace osu.Game.Rulesets.Scoring public long OnlineScoreID; [JsonProperty(@"created_at")] - public DateTime Date; + public DateTimeOffset Date; [JsonProperty(@"statistics")] private Dictionary jsonStats diff --git a/osu.Game/Rulesets/Scoring/ScoreProcessor.cs b/osu.Game/Rulesets/Scoring/ScoreProcessor.cs index 11c1c273e2..79fb34a523 100644 --- a/osu.Game/Rulesets/Scoring/ScoreProcessor.cs +++ b/osu.Game/Rulesets/Scoring/ScoreProcessor.cs @@ -129,7 +129,7 @@ namespace osu.Game.Rulesets.Scoring score.MaxCombo = HighestCombo; score.Accuracy = Accuracy; score.Rank = rankFrom(Accuracy); - score.Date = DateTime.Now; + score.Date = DateTimeOffset.Now; score.Health = Health; } } diff --git a/osu.Game/Screens/Ranking/ResultsPageScore.cs b/osu.Game/Screens/Ranking/ResultsPageScore.cs index fad914e9d4..4dc61b8160 100644 --- a/osu.Game/Screens/Ranking/ResultsPageScore.cs +++ b/osu.Game/Screens/Ranking/ResultsPageScore.cs @@ -116,7 +116,7 @@ namespace osu.Game.Screens.Ranking Origin = Anchor.TopCentre, Margin = new MarginPadding { Bottom = 10 }, }, - new DateDisplay(Score.Date) + new DateDisplay(Score.Date.LocalDateTime) { Anchor = Anchor.TopCentre, Origin = Anchor.TopCentre,