Skip to content

Commit

Permalink
There is a nqp::decodelocaltime
Browse files Browse the repository at this point in the history
So I think that means we can get rid of nqp::p6decodelocaltime
  • Loading branch information
lizmat committed Jan 7, 2019
1 parent edb5308 commit f010ef5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Rakudo/Internals.pm6
Expand Up @@ -826,7 +826,7 @@ implementation detail and has no serviceable parts inside"

method get-local-timezone-offset() {
my $utc := time;
my Mu $fia := nqp::p6decodelocaltime(nqp::unbox_i($utc));
my Mu $fia := nqp::decodelocaltime(nqp::unbox_i($utc));

DateTime.new(
nqp::atpos_i($fia,5), # year
Expand Down

0 comments on commit f010ef5

Please sign in to comment.