Permalink
Browse files

Added support for archive date_format

  • Loading branch information...
1 parent 7a78573 commit 37535c3858a5c29cfea541f2c9f784ec8fba8980 @tvroom tvroom committed Dec 2, 2003
Showing with 3 additions and 2 deletions.
  1. +3 −2 Slash/Slash.pm
View
@@ -1374,12 +1374,13 @@ sub displayStory {
}
- my $storytime = timeCalc($story->{'time'});
+ my $df = $user->{mode} eq "archive" ? $constants->{archive_dateformat} : "";
+ my $storytime = timeCalc($story->{'time'}, $df);
my $atstorytime;
if ($options->{is_future} && !($user->{author} || $user->{is_admin})) {
$atstorytime = $constants->{subscribe_future_name};
} else {
- $atstorytime = $user->{aton} . " " . timeCalc($story->{'time'});
+ $atstorytime = $user->{aton} . " " . timeCalc($story->{'time'}, $df);
}
$return =~ s/\Q__TIME_TAG__\E/$atstorytime/ unless $options->{get_cacheable};

0 comments on commit 37535c3

Please sign in to comment.