Fix date string

This commit is contained in:
Dean Herbert 2019-05-22 23:49:54 +09:00
parent 66f5dbaa9f
commit 661fc01e7d
2 changed files with 2 additions and 6 deletions

View File

@ -46,9 +46,7 @@ namespace osu.Game.Overlays.Changelog
Add(new OsuSpriteText
{
// do we need .ToUniversalTime() here?
// also, this should be a temporary solution to weekdays in >localized< date strings
Text = build.CreatedAt.Date.ToLongDateString().Replace(build.CreatedAt.ToString("dddd") + ", ", ""),
Text = build.CreatedAt.Date.ToString("dd MMM yyyy"),
Font = OsuFont.GetFont(weight: FontWeight.Regular, size: 24),
Colour = OsuColour.FromHex(@"FD5"),
Anchor = Anchor.TopCentre,

View File

@ -73,9 +73,7 @@ namespace osu.Game.Overlays.Changelog
existing.Add(new OsuSpriteText
{
// do we need .ToUniversalTime() here?
// also, this should be a temporary solution to weekdays in >localized< date strings
Text = Build.CreatedAt.Date.ToLongDateString().Replace(Build.CreatedAt.ToString("dddd") + ", ", ""),
Text = Build.CreatedAt.Date.ToString("dd MMM yyyy"),
Font = OsuFont.GetFont(weight: FontWeight.Regular, size: 14),
Colour = OsuColour.FromHex(@"FD5"),
Anchor = Anchor.BottomCentre,