Skip to content

Commit

Permalink
Use created date for year instead of updated date
Browse files Browse the repository at this point in the history
  • Loading branch information
danielvijge committed Apr 18, 2024
1 parent 26c5ed4 commit bac887d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ProtocolHandler.pm
Original file line number Diff line number Diff line change
Expand Up @@ -358,9 +358,7 @@ sub makeCacheItem {
}

my $year;
if ($json->{'updated_time'}) {
$year = substr $json->{'updated_time'}, 0 , 4;
} elsif ($json->{'created_time'}) {
if ($json->{'created_time'}) {
$year = substr $json->{'created_time'}, 0, 4;
}

Expand Down

0 comments on commit bac887d

Please sign in to comment.