1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-16 23:03:28 +08:00

Fix date string

This commit is contained in:
Dean Herbert
2019-05-22 23:49:54 +09:00
Unverified
parent 66f5dbaa9f
commit 661fc01e7d
2 changed files with 2 additions and 6 deletions
@@ -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,
@@ -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,