Date formats are now forced to be non-empty.

This commit is contained in:
Chris 2012-01-10 14:46:54 +00:00
parent da9d8bb327
commit 104598bd86

View File

@ -98,6 +98,10 @@ sub new {
@_,
};
# Force date formats to sane values.
$self -> {"timefmt"} = '%a, %d %b %Y %H:%M:%S' unless($self -> {"timefmt"});
$self -> {"mailfmt"} = '%a, %d %b %Y %H:%M:%S %z' unless($self -> {"mailfmt"});
my $obj = bless $self, $class;
# Load the language definitions