1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-30 02:22:55 +08:00

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

View File

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