File tree Expand file tree Collapse file tree
src/XtremeIdiots.Portal.Web/Helpers Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -48,15 +48,15 @@ private static string BuildRelative(DateTime dateTimeUtc)
4848 var minutes = span . TotalMinutes ;
4949 var hours = span . TotalHours ;
5050 var days = span . TotalDays ;
51- if ( seconds < 45 )
52- return future ? "in a few seconds" : "just now" ;
53- if ( seconds < 90 )
54- return future ? "in a minute" : "a minute ago" ;
55- if ( minutes < 45 )
56- return future ? $ "in { Math . Round ( minutes ) } minutes" : $ "{ Math . Round ( minutes ) } minutes ago";
57- if ( minutes < 90 )
58- return future ? "in an hour" : "an hour ago" ;
59- return hours < 24
51+ return seconds < 45
52+ ? future ? "in a few seconds" : "just now"
53+ : seconds < 90
54+ ? future ? "in a minute" : "a minute ago"
55+ : minutes < 45
56+ ? future ? $ "in { Math . Round ( minutes ) } minutes" : $ "{ Math . Round ( minutes ) } minutes ago"
57+ : minutes < 90
58+ ? future ? "in an hour" : "an hour ago"
59+ : hours < 24
6060 ? future ? $ "in { Math . Round ( hours ) } hours" : $ "{ Math . Round ( hours ) } hours ago"
6161 : hours < 42
6262 ? future ? "in a day" : "a day ago"
You can’t perform that action at this time.
0 commit comments