mirror of
https://github.com/ppy/osu.git
synced 2025-01-14 17:52:56 +08:00
Make build's creation date not nullable
This commit is contained in:
parent
1492d5cb29
commit
ce0029eabf
@ -25,7 +25,7 @@ namespace osu.Game.Online.API.Requests.Responses
|
||||
public bool IsFeatured { get; set; }
|
||||
|
||||
[JsonProperty("created_at")]
|
||||
public DateTimeOffset? CreatedAt { get; set; }
|
||||
public DateTimeOffset CreatedAt { get; set; }
|
||||
|
||||
[JsonProperty("update_stream")]
|
||||
public UpdateStream UpdateStream { get; set; }
|
||||
|
@ -91,7 +91,7 @@ namespace osu.Game.Overlays.Changelog
|
||||
{
|
||||
// do we need .ToUniversalTime() here?
|
||||
// also, this should be a temporary solution to weekdays in >localized< date strings
|
||||
Text = build.CreatedAt.Value.Date.ToLongDateString().Replace(build.CreatedAt.Value.ToString("dddd") + ", ", ""),
|
||||
Text = build.CreatedAt.Date.ToLongDateString().Replace(build.CreatedAt.ToString("dddd") + ", ", ""),
|
||||
TextSize = 17, // web: 14,
|
||||
Colour = OsuColour.FromHex(@"FD5"),
|
||||
Font = @"Exo2.0-Medium",
|
||||
|
Loading…
Reference in New Issue
Block a user