---
title: "Discussion on \"CrewAI memory recall: \"TypeError: can't subtract offset-naive and offset-aware datetimes\"\" | Hashnode"
description: "Discussion on \"CrewAI memory recall: \"TypeError: can't subtract offset-naive and offset-aware datetimes\"\". CrewAI's recall scoring subtracts a naive utcnow() from your record's created_at. A timezone-aware timestamp crashes recall. Repro and workaround."
url: "https://hashnode.com/posts/crewai-memory-recall-cant-subtract-offset-naive-and-offset-aware-datetimes/6af341d6aa7c3d1e051b4c00"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [CrewAI memory recall: "TypeError: can't subtract offset-naive and offset-aware datetimes"](https://memorysync.hashnode.dev/crewai-memory-recall-cant-subtract-offset-naive-and-offset-aware-datetimes?utm_source=hashnode&utm_medium=feed)

CrewAI's recall scoring subtracts a naive utcnow() from your record's created\_at. A timezone-aware timestamp crashes recall. Repro and workaround.

1d ago · 6 min read · memorysync.hashnode.dev  
Read the article

-   [#crewai](https://hashnode.com/tag/crewai)
-   [#python](https://hashnode.com/tag/python)
-   [#ai](https://hashnode.com/tag/ai)
-   [#agents](https://hashnode.com/tag/agents)
-   [#debugging](https://hashnode.com/tag/debugging)

## Written by

[MemorySync](https://hashnode.com/@memorysync)

@memorysync · San Francisco, USA

  
[View profile](https://hashnode.com/@memorysync)

Building MemorySync (memorysync.io) — persistent memory infrastructure for AI agents, Cursor, and Claude Code.

Building MemorySync (memorysync.io) — persistent memory infrastructure for AI agents, Cursor, and Claude Code.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
