File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -2562,7 +2562,7 @@ def onecmd_plus_hooks(
2562
2562
2563
2563
redir_saved_state = self ._redirect_output (statement )
2564
2564
2565
- timestart = datetime .datetime .now ()
2565
+ timestart = datetime .datetime .now (tz = datetime . timezone . utc )
2566
2566
2567
2567
# precommand hooks
2568
2568
precmd_data = plugin .PrecommandData (statement )
@@ -2588,7 +2588,7 @@ def onecmd_plus_hooks(
2588
2588
stop = self .postcmd (stop , statement )
2589
2589
2590
2590
if self .timing :
2591
- self .pfeedback (f'Elapsed: { datetime .datetime .now () - timestart } ' )
2591
+ self .pfeedback (f'Elapsed: { datetime .datetime .now (tz = datetime . timezone . utc ) - timestart } ' )
2592
2592
finally :
2593
2593
# Get sigint protection while we restore stuff
2594
2594
with self .sigint_protection :
Original file line number Diff line number Diff line change @@ -169,9 +169,9 @@ select = [
169
169
# "CPY", # flake8-copyright (warn about missing copyright notice at top of file - currently in preview)
170
170
# "D", # pydocstyle (warn about things like missing docstrings)
171
171
# "DOC", # pydoclint (docstring warnings - currently in preview)
172
- " DJ" , # flake8-django (Django-specific warnings)
173
- # "DTZ", # flake8-datetimez (warn about datetime calls where no timezone is specified)
174
- " E" , # pycodestyle errors (warn about major stylistic issues like mixing spaces and tabs)
172
+ " DJ" , # flake8-django (Django-specific warnings)
173
+ " DTZ" , # flake8-datetimez (warn about datetime calls where no timezone is specified)
174
+ " E" , # pycodestyle errors (warn about major stylistic issues like mixing spaces and tabs)
175
175
# "EM", # flake8-errmsg (warn about exceptions that use string literals that aren't assigned to a variable first)
176
176
# "ERA", # eradicate (warn about commented-out code)
177
177
# "EXE", # flake8-executable (warn about files with a shebang present that aren't executable or vice versa)
You can’t perform that action at this time.
0 commit comments