From 06094e22f47c62ecc794236b7cc969b27cf75bb6 Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Fri, 7 Oct 2022 23:15:00 -0700 Subject: [PATCH] Change date automatically --- minecraft/list_playtime.cgi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/minecraft/list_playtime.cgi b/minecraft/list_playtime.cgi index 616a4f685..512c71cf3 100755 --- a/minecraft/list_playtime.cgi +++ b/minecraft/list_playtime.cgi @@ -33,7 +33,8 @@ if (keys %$playtime || @players) { my @opts = ( [ "", $text{'playtime_today'} ], [ "all", $text{'playtime_all'} ] ); push(@opts, @days); - print &ui_select("date", $in{'date'}, \@opts),"\n"; + print &ui_select("date", $in{'date'}, \@opts, 1, 0, 0, 0, + "onChange='form.submit()'"),"\n"; print &ui_submit($text{'playtime_ok'}); print &ui_form_end();