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:
parent
66f5dbaa9f
commit
661fc01e7d
@ -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,
|
||||||
|
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user