Skip to content
Permalink
Browse files

Coerce in-timezone's value to Int

Fixes R#2381 #2381
  • Loading branch information...
zoffixznet committed Oct 17, 2018
1 parent 5aef7bd commit c8438e6afe311311a5be0c5c69bff7b2e1a1a3e9
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/DateTime.pm6
@@ -356,7 +356,7 @@ my class DateTime does Dateish {
}
method whole-second() { $!second.Int }

method in-timezone($timezone) {
method in-timezone(Int(Cool) $timezone) {
return self if $timezone == $!timezone;

my int $old-offset = self.offset;

0 comments on commit c8438e6

Please sign in to comment.
You can’t perform that action at this time.