mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 11:42:56 +08:00
Use DateTimeOffset.
This commit is contained in:
parent
b9a40a841b
commit
d213706d07
@ -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 },
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user