mirror of
https://github.com/osukey/osukey.git
synced 2025-08-05 15:44:04 +09:00
Add tests for timerefs
This commit is contained in:
@ -401,8 +401,10 @@ namespace osu.Game.Online.Leaderboards
|
||||
// TODO(optional): support localisation (probably via `CommonStrings.CountHours()` etc.)
|
||||
// requires pluralisable string support framework-side
|
||||
|
||||
if (difference.TotalMinutes < 1)
|
||||
if (difference.TotalSeconds < 10)
|
||||
return CommonStrings.TimeNow.ToString();
|
||||
if (difference.TotalMinutes < 1)
|
||||
return $@"{Math.Floor(difference.TotalSeconds)}s";
|
||||
if (difference.TotalHours < 1)
|
||||
return $@"{Math.Floor(difference.TotalMinutes)}min";
|
||||
if (difference.TotalDays < 1)
|
||||
|
Reference in New Issue
Block a user