Skip to content

Conversation

@DominikKriss
Copy link

@DominikKriss DominikKriss commented Mar 30, 2025

fix the logic around time unit of hours and minutes
with this fix, it is possible to count over 23 hours and/or 59 minutes

hour_unit = get_unit_allocation( custom_time_format, 'H' );

minute_format = get_unit_allocation( custom_time_format, 'M' );
local custom_time_format_without_hour_instruction = custom_time_format:gsub( "{$H" .. tostring(hour_unit) .. "}", "$H" );

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it possible to use removeInstructions here? or is format different

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here you need to just remove hour instruction so minute instruction may be red out from the string
original code does not take multiple instructions into consideration thats why I only removed hour instructions here

@DominikKriss DominikKriss reopened this Apr 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants