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

ManageSieve: Fix timeformat processing for frontend the time picker #9688

Merged
merged 3 commits into from
Nov 20, 2024

Conversation

bennet0496
Copy link
Contributor

Additionally to the missing time formatters described in #9655, the function sieve_formattime() has also two additional bugs processing the existing time formats.

First the 12h format is not processed properly e.g. resulting in 24h format with am/pm specifiers in the timeformat is set to h:i a. This is the result of the calculated 12h value not actually being used to the string construction.
image

And second having seconds in the timeformat will append a dangling s to the number due the fall through of the last switch case in the function.
image

This PR fix both issues (in separate commits).

@pabzm pabzm requested review from alecpl and pabzm November 5, 2024 16:24
Copy link
Member

@pabzm pabzm left a comment

Choose a reason for hiding this comment

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

Looks good to me, thank you very much!

Could you add a Changelog-entry for the fix?

@bennet0496
Copy link
Contributor Author

added it

@pabzm
Copy link
Member

pabzm commented Nov 6, 2024

@alecpl I'll merge this in one week unless you object.

@pabzm pabzm merged commit ef76e6f into roundcube:master Nov 20, 2024
16 checks passed
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.

2 participants