WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
291303
DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version
https://bugs.webkit.org/show_bug.cgi?id=291303
Summary
DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled fo...
Fujii Hironori
Reported
2025-04-08 18:11:43 PDT
Created
attachment 474877
[details]
error_log.txt I'm running layout tests with Python 3.13. Lot of DeprecationWarning are reported in error_log.txt: [Wed Apr 09 09:42:28.533371 2025] [cgi:error] [pid 37356:tid 1120] [client 127.0.0.1:7996] AH01215: C:\\webkit\\wb\\LayoutTests\\http\\tests\\cache\\resources\\cacheable-iframe.py:7: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).\r: C:/webkit/wb/LayoutTests/http/tests/cache/resources/cacheable-iframe.py, referer:
http://127.0.0.1:8000/cache/cached-main-resource.html
[Wed Apr 09 09:42:35.332134 2025] [cgi:error] [pid 37356:tid 176] [client 127.0.0.1:8188] AH01215: C:\\webkit\\wb\\LayoutTests\\http\\tests\\resources\\network-simulator.py:87: DeprecationWarning: datetime.datetime.utcfromtimestamp() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.fromtimestamp(timestamp, datetime.UTC).\r: C:/webkit/wb/LayoutTests/http/tests/resources/network-simulator.py, referer:
http://127.0.0.1:8000/harness/slow-loading-html-iframe.html
Attachments
error_log.txt
(119.15 KB, text/plain)
2025-04-08 18:11 PDT
,
Fujii Hironori
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Fujii Hironori
Comment 1
2025-04-08 20:34:39 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/43832
EWS
Comment 2
2025-04-09 12:49:37 PDT
Committed
293480@main
(f32092ad8f90): <
https://commits.webkit.org/293480@main
> Reviewed commits have been landed. Closing PR #43832 and removing active labels.
Radar WebKit Bug Importer
Comment 3
2025-04-09 12:50:14 PDT
<
rdar://problem/148930015
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug