From 556cd32114f84a378488b381a65ed3ae1beda8a4 Mon Sep 17 00:00:00 2001 From: chiatchiat Date: Sat, 1 Apr 2023 21:01:30 +0800 Subject: Update cherrypy/_cplogging.py Co-authored-by: Sviatoslav Sydorenko --- cherrypy/_cplogging.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cherrypy/_cplogging.py b/cherrypy/_cplogging.py index 0e57c6ac..bce1c87b 100644 --- a/cherrypy/_cplogging.py +++ b/cherrypy/_cplogging.py @@ -453,4 +453,5 @@ class WSGIErrorHandler(logging.Handler): class LazyRfc3339UtcTime(object): def __str__(self): """Return utcnow() in RFC3339 UTC Format.""" - return f"{datetime.datetime.utcnow().isoformat('T')}Z" + iso_formatted_now = datetime.datetime.utcnow().isoformat('T') + return f'{iso_formatted_now!s}Z' -- cgit v1.2.1