Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strings - Fix for formatElapsedTime rounding error #1443

Merged
merged 1 commit into from
May 9, 2021

Conversation

formtapez
Copy link
Contributor

CBA_fnc_formatElapsedTime is sending unrounded seconds to CBA_fnc_formatNumber, which is causing the output string to be half a second off and showing impossible "60" seconds when the input time is decimal (like from "serverTime") and above {n}.5

When merged this pull request will:

  • Fix the output string to display time from 0 - 59 seconds only, like a clock works.

Before:
systemChat (3599.5 call CBA_fnc_formatElapsedTime);
Output -> "0:59:60"

After:
systemChat (3599.5 call CBA_fnc_formatElapsedTime);
Output -> "0:59:59"

avoids display of 60 seconds behind the minutes
@PabstMirror PabstMirror changed the title fix for formatElapsedTime rounding error Strings - Fix for formatElapsedTime rounding error May 9, 2021
@PabstMirror PabstMirror added this to the 3.15.4 milestone May 9, 2021
@PabstMirror PabstMirror merged commit 224eb42 into CBATeam:master May 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants