fix Bug#785380 incorrect date format

Gbp-Pq: Name 0026-fix-Bug-785380-incorrect-date-format.patch
This commit is contained in:
Hideki Yamane 2016-01-28 21:38:09 +09:00 committed by Lu zhiping
parent d7e1294035
commit e709391ab6
1 changed files with 3 additions and 0 deletions

View File

@ -13,6 +13,9 @@ use Net::SMTP;
use Getopt::Std; use Getopt::Std;
use POSIX qw(strftime); use POSIX qw(strftime);
# for sane timestamp format
$ENV{LANG} = 'C';
$opts{'s'} = "localhost"; $opts{'s'} = "localhost";
$opts{'f'} = 'root@' . `hostname`; $opts{'f'} = 'root@' . `hostname`;
chomp($opts{'f'}); chomp($opts{'f'});