diff options
| author | bwarsaw | 2001-03-26 00:03:46 +0000 |
|---|---|---|
| committer | bwarsaw | 2001-03-26 00:03:46 +0000 |
| commit | e26d6e35002073f425dd39d4aac7e838d158f80a (patch) | |
| tree | 74a305161e4872c6781f37336854bc86b909b371 | |
| parent | 1a8715230d9b4d72dbc8348eb9ef0250037387cf (diff) | |
| download | mailman-e26d6e35002073f425dd39d4aac7e838d158f80a.tar.gz mailman-e26d6e35002073f425dd39d4aac7e838d158f80a.tar.zst mailman-e26d6e35002073f425dd39d4aac7e838d158f80a.zip | |
setdateinfo(): Patch by Tollef Fog Heen which closes Debian bug
59359. Even though this script is deprecated and unsupported, this
patch fixes a reported problem with years < 100.
Note: I did not test this patch.
| -rwxr-xr-x | bin/digest_arch | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/digest_arch b/bin/digest_arch index 75c2146d7..8e4a89491 100755 --- a/bin/digest_arch +++ b/bin/digest_arch @@ -1,6 +1,6 @@ #! /usr/bin/env python # -# Copyright (C) 1998,1999,2000 by the Free Software Foundation, Inc. +# Copyright (C) 1998,1999,2000,2001 by the Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -90,7 +90,7 @@ def setdateinfo(s): last_dow = days_of_week.index(dow) if len(year) == 2: - year = '19' + year + year = 1900 + int(year) outfile.write("From %s %s %s %s %s %s\n" % (From, dow, mon, day, time, year)) # print "From %s %s %s %s %s %s" % (From, dow, mon, day, time, year) |
