Skip to content

Commit f8048b9

Browse files
committed
Remove extra zeros on time strings
1 parent 873373f commit f8048b9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lua/custom_chat/client/main.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,14 @@ function CustomChat.NiceTime( time )
5555
end
5656

5757
if h > 0 then
58-
return Format( "%02i ", h ) .. L( "time.hours" )
58+
return h .. " " .. L( "time.hours" )
5959
end
6060

6161
if m > 0 and h < 1 and d < 1 then
62-
return Format( "%02i ", m ) .. L( "time.minutes" )
62+
return m .. " " .. L( "time.minutes" )
6363
end
6464

65-
return Format( "%02i ", s ) .. L( "time.seconds" )
65+
return s .. " " .. L( "time.seconds" )
6666
end
6767

6868
function CustomChat.PrintMessage( text )

0 commit comments

Comments
 (0)