Date formats are now forced to be non-empty.
This commit is contained in:
parent
da9d8bb327
commit
104598bd86
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user