mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 18:23:04 +08:00
Update join date definition.
This commit is contained in:
parent
69270814d5
commit
fe3cbb7072
@ -306,7 +306,7 @@ namespace osu.Game.Overlays.Profile
|
||||
|
||||
if (user.IsSupporter) supporterTag.Show();
|
||||
|
||||
if(!string.IsNullOrEmpty(user.Colour))
|
||||
if (!string.IsNullOrEmpty(user.Colour))
|
||||
{
|
||||
colourBar.Colour = OsuColour.FromHex(user.Colour);
|
||||
colourBar.Show();
|
||||
@ -329,8 +329,15 @@ namespace osu.Game.Overlays.Profile
|
||||
}
|
||||
infoTextLeft.NewParagraph();
|
||||
|
||||
infoTextLeft.AddText("Joined ");
|
||||
infoTextLeft.AddText(user.JoinDate, boldItalic);
|
||||
if (user.JoinDate.ToUniversalTime().Year < 2008)
|
||||
{
|
||||
infoTextLeft.AddText("Here since the beginning", boldItalic);
|
||||
}
|
||||
else
|
||||
{
|
||||
infoTextLeft.AddText("Joined ");
|
||||
infoTextLeft.AddText(user.JoinDate.LocalDateTime.ToShortDateString(), boldItalic);
|
||||
}
|
||||
infoTextLeft.NewLine();
|
||||
infoTextLeft.AddText("Last seen ");
|
||||
infoTextLeft.AddText(user.LastVisit.LocalDateTime.ToShortDateString(), boldItalic);
|
||||
|
@ -12,8 +12,8 @@ namespace osu.Game.Users
|
||||
[JsonProperty(@"id")]
|
||||
public long Id = 1;
|
||||
|
||||
[JsonProperty(@"joinDate")]
|
||||
public string JoinDate;
|
||||
[JsonProperty(@"join_date")]
|
||||
public DateTimeOffset JoinDate;
|
||||
|
||||
[JsonProperty(@"username")]
|
||||
public string Username;
|
||||
|
Loading…
Reference in New Issue
Block a user