Open Gunjansokal07 opened 1 year ago
Hi,
If I understood your use case, it's normal.
10 10 * * *
means every day of the week at 10:10, right?
But it also means every day at 10:10, right?
It's the same thing. This cron component is designed to make you read the most easy format.
Every day at 10:10
= Every week on every day of the week at 10:10
= Every month on every day of the month n every day of the week at 10:10
, ect...
Let me know if I understood what you meant?
Hi @xrutayisire, thank you for your quick response.
Yes, you've understood the issue correctly. However, when we set the defaultPeriod to "Weekly" and then set the cron value as "10 10 *" [using default value for cron], it should persist the period as "Weekly." But it appears to be changing the period in the dropdown to "Daily."
Could you please look into this? Your assistance is greatly appreciated.
Hi,
It's true that the default value for period should be persisted. Also, the same problem happens when we set to only allow "Weekly" period, daily will be selected when it should keep the only allowed one.
It's necessary to rework the period management and the fallback system. I currently don't have time to fix that, if you want to open a PR I would review it.
If not, I will do it, but I'm not really sure when. Could be something in November.
Thank you for the bug report š
Thanks @xrutayisire for response. I am also little bit busy with work. But I will try to look into this. Meanwhile if you get the time then kindly fix it.
Thanks in advance.
Hi,
It's true that the default value for period should be persisted. Also, the same problem happens when we set to only allow "Weekly" period, daily will be selected when it should keep the only allowed one.
It's necessary to rework the period management and the fallback system. I currently don't have time to fix that, if you want to open a PR I would review it.
If not, I will do it, but I'm not really sure when. Could be something in November.
Thank you for the bug report š
Hi @xrutayisire , Is there any update on this?
Hi,
No sorry I really have no time since quite some time now. I'm not sure when I could take care of that in a near future. š
Description:
I am utilizing the react-js-cron to create weekly cron expressions. However, when attempting to edit a cron expression for all days of the week, the editor automatically switches to a daily mode. Specifically, when I input a weekly cron expression for every day of the week, such as '10 10 *,' the editor incorrectly converts it to a daily cron format.
Here are the steps to reproduce the issue, broken down point by point:
Versions (please complete the following information):