diff --git a/local/traptoemail b/local/traptoemail index e738ba7..cadc18b 100755 --- a/local/traptoemail +++ b/local/traptoemail @@ -13,6 +13,9 @@ use Net::SMTP; use Getopt::Std; use POSIX qw(strftime); +# for sane timestamp format +$ENV{LANG} = 'C'; + $opts{'s'} = "localhost"; $opts{'f'} = 'root@' . `hostname`; chomp($opts{'f'});