Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F7124321
D7345.id26561.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
696 B
Subscribers
None
D7345.id26561.diff
View Options
diff --git a/swh/deposit/cli/admin.py b/swh/deposit/cli/admin.py
--- a/swh/deposit/cli/admin.py
+++ b/swh/deposit/cli/admin.py
@@ -234,7 +234,7 @@
"""
# to avoid loading too early django namespaces
- from datetime import datetime
+ import datetime
from swh.deposit.config import (
DEPOSIT_STATUS_LOAD_FAILURE,
@@ -281,5 +281,7 @@
# Schedule back the deposit loading task
scheduler = APIConfig().scheduler
scheduler.set_status_tasks(
- [task_id], status="next_run_not_scheduled", next_run=datetime.now()
+ [task_id],
+ status="next_run_not_scheduled",
+ next_run=datetime.datetime.now(tz=datetime.timezone.utc),
)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Dec 21 2024, 6:51 AM (11 w, 4 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3220108
Attached To
D7345: adm_deposit_reschedule: Fix "can not serialize 'datetime.datetime' object"
Event Timeline
Log In to Comment