it-tools
it-tools copied to clipboard
Disappearing Crontab Generator
Describe the bug
When you set the day of week to 0 and then toggle off "Days start at 0" - the generator disappears.
What happened?
I was double checking a default weekly cron job in DietPi and saw that it had a day of week listed as 7. I wanted to adjust it's timing, so to double check it, I ran it through my self hosted instance of it-tools. It gave me the invalid cron warning, so I adjusted the day to 0. I then saw the "days start at 0" toggle and wanted to see if 7 would work with that off. However, I toggled first before changing the number and the generator disappeared!
I double checked by going to the public version at it-tools.tech, and the same thing happens.
At the very least, I would expect the "This cron is invalid" error to show instead.
Screenshots:
System information
My self-hosted instance is running with docker compose in a swarm cluster, not replicated, just for failover. Docker is running on DietPi in a VM on Proxmox.
My browser that experienced this issue in both places is Microsoft edge version 137.0.3296.68 (Offic.ial build) (64-bit)
Where did you encounter the bug?
Public app (it-tools.tech)
HI @dcwestra , probably works here: https://sharevb-it-tools.vercel.app/crontab-generator
And if you arr interested in up to date version of it-tools, I made kind of a fork here : https://github.com/sharevb/it-tools (https://sharevb-it-tools.vercel.app/ and docker images https://github.com/sharevb/it-tools/pkgs/container/it-tools)
@sharevb also not working on yours. The whole div container just disappears (in both versions, also on it-tech).
Also reproducible on firefox, both on it-tools.tech and sharevb-it-tools.vercel.app. Cron entry * * * * * 0 is what I used.
Hi @Lunaresk , are you sure you did ctrl+f5: no problem at https://sharevb-it-tools.vercel.app/crontab-generator with * * * * * 0
@sharevb that's strange. So what I'm doing (on Firefox version 141.0.3 on Windows):
- Open https://sharevb-it-tools.vercel.app/crontab-generator
- Enter
* * * * * 0into the input field (Unix standard and AWS have the same effect, also reproducible with* * * * 0) - Toggle
Days start at 0tooffThen it disappears on me. Can delete my cache and try again you can't reproduce it on your side, but CTRL + F5 I did.
Can confirm with Lunaresk. Still disappearing. See screenshots below. First is with my entry with "Days Start at 0" still toggled on. Second is what happens immediately after toggling off.
Hi @Lunaresk , @dcwestra , thanks for this bug reporting, it should be ok now in my fork : https://sharevb-it-tools.vercel.app/crontab-generator
And if you are interested in an up to date version of it-tools, with many improvements, new tools, and bug fixes, as this repo is almost no more maintained, I made a fork here : https://github.com/sharevb/it-tools (https://sharevb-it-tools.vercel.app/ and docker images https://github.com/sharevb/it-tools/pkgs/container/it-tools)