Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Coerce in-timezone's value to Int
Fixes R#2381 #2381
  • Loading branch information
zoffixznet committed Oct 17, 2018
1 parent 5aef7bd commit c8438e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/DateTime.pm6
Expand Up @@ -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;
Expand Down

0 comments on commit c8438e6

Please sign in to comment.