Tahasaif3 commited on
Commit
c71cf2c
·
verified ·
1 Parent(s): 8a4ad48

Update src/events.py

Browse files
Files changed (1) hide show
  1. src/events.py +1 -1
src/events.py CHANGED
@@ -52,7 +52,7 @@ async def publish_task_event(event_type: str, task: Task):
52
  event = {
53
  "event_id": str(uuid.uuid4()),
54
  "event_type": event_type,
55
- "timestamp": datetime.utcnow().isoformat() + "Z",
56
  "user_id": str(user_id), # Convert to string for consistency
57
  "task_id": getattr(task, 'id', 0), # Assuming id exists on task
58
  "task_data": {
 
52
  event = {
53
  "event_id": str(uuid.uuid4()),
54
  "event_type": event_type,
55
+ "timestamp": datetime.now(datetime.UTC).isoformat() + "Z",
56
  "user_id": str(user_id), # Convert to string for consistency
57
  "task_id": getattr(task, 'id', 0), # Assuming id exists on task
58
  "task_data": {