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

BREAKING CHANGE: Inject an argument of type TimeLeft instead of a string #92

Merged
merged 1 commit into from
Sep 16, 2024

Conversation

MrDave1999
Copy link
Owner

@MrDave1999 MrDave1999 commented Sep 16, 2024

This change is implemented to ensure that the "UpdateTimeLeft" method only updates the text in a fixed format. Previously, a string could be passed in any format, which could lead to inconsistencies or errors in how the time was displayed.

By using the "TimeLeft" class, we ensure that the text format is always 00:00, as required for correct time display.
The "TimeLeft" class enforces this format, preventing any incorrect formats from being used and improving the consistency and reliability of the time presentation.

…string`

This change is implemented to ensure that the "UpdateTimeLeft" method only updates the text in a fixed format. Previously, a string could be passed in any format, which could lead to inconsistencies or errors in how the time was displayed.

By using the "TimeLeft" class, we ensure that the text format is always 00:00, as required for correct time display. The "TimeLeft" class enforces this format, preventing any incorrect formats from being used and improving the consistency and reliability of the time presentation.
@MrDave1999 MrDave1999 added the breaking-change Change API design or behavior label Sep 16, 2024
@MrDave1999 MrDave1999 marked this pull request as ready for review September 16, 2024 23:25
@MrDave1999 MrDave1999 merged commit 4e28a22 into dev Sep 16, 2024
1 check passed
@MrDave1999 MrDave1999 deleted the breaking-change branch September 16, 2024 23:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking-change Change API design or behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant