File: 0026-fix-Bug-785380-incorrect-date-format.patch

package info (click to toggle)
net-snmp 5.9.4%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 38,720 kB
  • sloc: ansic: 282,878; perl: 17,704; sh: 12,151; makefile: 2,711; python: 734; xml: 663; pascal: 62; sql: 47
file content (22 lines) | stat: -rw-r--r-- 531 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
From: Hideki Yamane <henrich@debian.org>
Date: Thu, 28 Jan 2016 21:38:09 +0900
Subject: fix Bug#785380 incorrect date format

---
 local/traptoemail | 3 +++
 1 file changed, 3 insertions(+)

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'});