From: Skip Montanaro Date: Fri, 22 Mar 2002 18:07:49 +0000 (+0000) Subject: guarantee that the dst flag of synthetic "time" tuples passed to strftime X-Git-Tag: v2.3c1~6398 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e8c6a3eef66950a1dea7bf0c17961e170aab94f9;p=python guarantee that the dst flag of synthetic "time" tuples passed to strftime is always 0. This closes bug #533234. --- diff --git a/Lib/calendar.py b/Lib/calendar.py index 9af2c933f1..9ae768af66 100644 --- a/Lib/calendar.py +++ b/Lib/calendar.py @@ -33,7 +33,7 @@ class _localized_name: if item < 0: item += self.len if not 0 <= item < self.len: raise IndexError, "out of range" - return strftime(self.format, (item,)*9).capitalize() + return strftime(self.format, (item,)*8+(0,)).capitalize() elif isinstance(item, type(slice(0))): return [self[e] for e in range(self.len)].__getslice__(item.start, item.stop) def __len__(self):