Skip to content

Commit d1f9c8c

Browse files
authored
Fix #5774, hours on unit marker timestamp (#5795)
1 parent f644509 commit d1f9c8c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

LuaUI/Widgets/unit_marker.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ function widget:UnitEnteredLos (unitID, teamID)
269269

270270
local _, _, _, _, buildProgress = spGetUnitHealth(unitID)
271271
if buildProgress < 1 then
272-
markerText = markerText .. " (" .. math.floor(100 * buildProgress) .. "% at " .. os.date( "%M:%S", spGetGameSeconds()) .. ")"
272+
markerText = markerText .. string.format(" (%d%% at %s)", math.floor(100 * buildProgress), string.formatTime(spGetGameSeconds()))
273273
end
274274

275275
local x, y, z = spGetUnitPosition(unitID)

0 commit comments

Comments
 (0)