Skip to content

Commit

Permalink
[Temporal] Ensured .new(Str) works correctly in derived classes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kodi Arfer authored and Kodi Arfer committed Oct 11, 2010
1 parent a1cd99b commit 3494676
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Temporal.pm
Expand Up @@ -227,7 +227,7 @@ class DateTime does Dateish {
$6[0][0] eq '-' and $timezone = -$timezone;
}
}
DateTime.new(:$year, :$month, :$day, :$hour, :$minute,
self.new(:$year, :$month, :$day, :$hour, :$minute,
:$second, :$timezone, :&formatter);
}

Expand Down

0 comments on commit 3494676

Please sign in to comment.