aboutsummaryrefslogtreecommitdiff
path: root/Plugin
diff options
context:
space:
mode:
Diffstat (limited to 'Plugin')
-rw-r--r--Plugin/Timezone.pm2
1 files changed, 1 insertions, 1 deletions
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();