Help with date entry

This commit is contained in:
gitlab.com/pepa65 2022-09-05 14:57:15 +07:00
parent ef653eac10
commit 3c14d70b26
2 changed files with 2 additions and 2 deletions

2
encode
View File

@ -73,7 +73,7 @@ rm "$file".?log
# Schedule cron job
m=${date:13:2} m=${m#0} h=${date:11:2} h=${h#0}
D=${date:8:2} D=${D#0} M=${date:5:2} M=${M#0}
crontab -l || echo -e "# m h dom mon dow command\n" |crontab -
crontab -l >/dev/null || echo -e "# m h dom mon dow command\n" |crontab -
line="$m $h $D $M "'*'" $repopath/stream '$name'"
echo -e "$(crontab -l)\n$line" |crontab -

View File

@ -28,7 +28,7 @@ function respond(){
<td class="right"><input type="text" name="streamkey" required title="string of 0-9, a-z, A-Z, underscore or dash characters" pattern="[a-zA-Z0-9_-]+"></td></tr>
<tr>
<td>Date & Time:</td>
<td><input type="datetime-local" name="datetime" required></td></tr>
<td><input type="datetime-local" name="datetime" title="Click on the date to get a popup" required></td></tr>
<tr>
<td>Video File:</td>
<td><input type="file" name="file" required accept=".mp4"></td></tr>