Hello, I have encountered this bug too. I've tried to apply your patch but it doens't work.
The problem happens instead because the hour is outputted as float so if, for example, I select 12:00 the cron line is:
0 12.0 * * * /usr/bin/nice -n 19 /usr/bin/ionice -c2 -n7 /usr/bin/backintime --backup-job >/dev/null 2>&1
To fix the problem the hour should be converted to int or you can use %i format string like here:
elif self.CUSTOM_HOUR == backup_mode: cron_line = 'echo "{msg}\n0 ' + self.get_custom_backup_time( profile_id ) + ' * * * {cmd}"' elif self.DAY == backup_mode: cron_line = "echo \"{msg}\n%i %i * * * {cmd}\"" % (minute, hour) # <------------------ elif self.REPEATEDLY == backup_mode:
Best regards, Tarcisio Fedrizzi.
Hello,
I have encountered this bug too.
I've tried to apply your patch but it doens't work.
The problem happens instead because the hour is outputted as float so if, for example, I select 12:00 the cron line is:
0 12.0 * * * /usr/bin/nice -n 19 /usr/bin/ionice -c2 -n7 /usr/bin/backintime --backup-job >/dev/null 2>&1
To fix the problem the hour should be converted to int or you can use %i format string like here:
Best regards,
Tarcisio Fedrizzi.