Don't assume that the date split can be split

This commit is contained in:
Jamie Cameron
2024-03-24 11:29:22 -07:00
parent 3a275d1d5b
commit 83c93d8bdc
2 changed files with 2 additions and 5 deletions

View File

@@ -99,9 +99,7 @@ print &ui_table_row($text{'index_time'},
&ui_textbox("hour", undef, 2).":".&ui_textbox("min", "00", 2));
# Current date and time
my ($date, $time) = split(/\s+/, &make_date(time()));
print &ui_table_row($text{'index_cdate'}, $date);
print &ui_table_row($text{'index_ctime'}, $time);
print &ui_table_row($text{'index_cdatetime'}, &make_date(time()));
# Run in directory
print &ui_table_row($text{'index_dir'},

View File

@@ -10,8 +10,7 @@ index_exec=Run at
index_created=Created on
index_dir=Run in directory
index_return=commands list
index_cdate=Current date
index_ctime=Current time
index_cdatetime=Current date and time
index_allow=Allowed scheduled command users
index_amode=Users to allow
index_amode0=All Unix users