Move to extension method and revert logic to match previous implementation

This commit is contained in:
Dean Herbert
2022-02-21 13:42:26 +09:00
parent 79408f6afc
commit fc1877b6fa
4 changed files with 55 additions and 55 deletions

View File

@ -2,8 +2,8 @@
// See the LICENCE file in the repository root for full licence text.
using System;
using osu.Game.Extensions;
using osu.Game.Graphics;
using osu.Game.Utils;
namespace osu.Game.Overlays.BeatmapSet.Scores
{
@ -15,6 +15,6 @@ namespace osu.Game.Overlays.BeatmapSet.Scores
}
protected override string Format()
=> ScoreboardTimeUtils.FormatRelativeTime(Date, TimeSpan.FromHours(1));
=> Date.ToShortRelativeTime(TimeSpan.FromHours(1));
}
}