Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix email dates when using UTC.
  • Loading branch information
icculus committed Feb 22, 2013
1 parent 77b5d9b commit 86dd086
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion archive_jabber.pl
Expand Up @@ -47,7 +47,9 @@ sub split_date_time {

sub utc_to_rfc822 {
my $utc = shift;
return UnixDate("$utc UTC", '%a, %d %b %Y %H:%M %Z');
my $retval = UnixDate("$utc UTC", '%a, %d %b %Y %H:%M %Z');
$retval =~ s/ UTC\Z/ UT/;
return $retval;
}

sub utc_to_local {
Expand Down

0 comments on commit 86dd086

Please sign in to comment.