1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 08:52:55 +08:00

Use DateTimeOffset.

This commit is contained in:
Huo Yaoyuan 2017-05-16 21:14:50 +08:00
parent b9a40a841b
commit d213706d07
5 changed files with 5 additions and 5 deletions

View File

@ -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<string, dynamic>()
{
{ "300", 50 },

View File

@ -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

View File

@ -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<string, dynamic> jsonStats

View File

@ -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;
}
}

View File

@ -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,