aboutsummaryrefslogtreecommitdiff
path: root/Plugin
diff options
context:
space:
mode:
authorDavid Phillips <david@yeah.nah.nz>2020-07-19 14:51:35 +1200
committerDavid Phillips <david@yeah.nah.nz>2020-07-19 14:51:35 +1200
commit26ce84ffb9875747896104d99c9fc29a29cc918e (patch)
treeb1aa205a66ff202ab731cc227d0070c994f81ef8 /Plugin
parent7b302b87f297604fc733edcdffb1e8662eb71f02 (diff)
downloadidalius-26ce84ffb9875747896104d99c9fc29a29cc918e.tar.xz
Timezone: make : optional
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();