diff options
author | chiatchiat <chiatchiat@gmail.com> | 2023-04-01 21:01:30 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-01 21:01:30 +0800 |
commit | 556cd32114f84a378488b381a65ed3ae1beda8a4 (patch) | |
tree | af460bd8d92d41ba7e85999cb7f9793ca148c244 | |
parent | 6142fa8c0dea7ec1ff30195d681868b3b14adcec (diff) | |
download | cherrypy-git-556cd32114f84a378488b381a65ed3ae1beda8a4.tar.gz |
Update cherrypy/_cplogging.py
Co-authored-by: Sviatoslav Sydorenko <wk.cvs.github@sydorenko.org.ua>
-rw-r--r-- | cherrypy/_cplogging.py | 3 |
1 files changed, 2 insertions, 1 deletions
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' |