We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2fd6236 commit ca8b571Copy full SHA for ca8b571
Doc/howto/logging-cookbook.rst
@@ -3877,7 +3877,7 @@ subclassed handler which looks something like this::
3877
def format(self, record):
3878
version = 1
3879
asctime = dt.datetime.fromtimestamp(record.created).isoformat()
3880
- m = self.tz_offset.match(time.strftime('%z'))
+ m = self.tz_offset.prefixmatch(time.strftime('%z'))
3881
has_offset = False
3882
if m and time.timezone:
3883
hrs, mins = m.groups()
0 commit comments