diff options
author | David Phillips <david@yeah.nah.nz> | 2020-07-19 14:51:35 +1200 |
---|---|---|
committer | David Phillips <david@yeah.nah.nz> | 2020-07-19 14:51:35 +1200 |
commit | 26ce84ffb9875747896104d99c9fc29a29cc918e (patch) | |
tree | b1aa205a66ff202ab731cc227d0070c994f81ef8 /Plugin | |
parent | 7b302b87f297604fc733edcdffb1e8662eb71f02 (diff) | |
download | idalius-26ce84ffb9875747896104d99c9fc29a29cc918e.tar.xz |
Timezone: make : optional
Diffstat (limited to 'Plugin')
-rw-r--r-- | Plugin/Timezone.pm | 2 |
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(); |