From 26ce84ffb9875747896104d99c9fc29a29cc918e Mon Sep 17 00:00:00 2001 From: David Phillips Date: Sun, 19 Jul 2020 14:51:35 +1200 Subject: Timezone: make : optional --- Plugin/Timezone.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Plugin') diff --git a/Plugin/Timezone.pm b/Plugin/Timezone.pm index c56a984..c532870 100644 --- a/Plugin/Timezone.pm +++ b/Plugin/Timezone.pm @@ -80,7 +80,7 @@ sub zone_convert { $to_arg = $requester unless $to_arg; my $to_tz = nick_to_zone($to_arg); - my ($hour, $minute) = $time_string =~ /^([0-9]{1,2}):([0-9]{1,2})/; + my ($hour, $minute) = $time_string =~ /^([0-9]{1,2}):?([0-9]{1,2})/; eval { my $d = DateTime->now(); -- cgit v1.1