memoryd: the day and the month of a time with get, never a slice

Implemented-By: OpenCode session (model recorded in docs/implementer-log.md)
This commit is contained in:
2026-09-25 16:41:44 -07:00
parent 1adce5c9df
commit b98f373ead
5 changed files with 6 additions and 10 deletions
+1 -1
View File
@@ -158,7 +158,7 @@ pub fn recall(
Some(fts) => search(index, &fts, args.k)?,
};
let rfc = now.to_rfc3339();
let month = &rfc[..7];
let month = rfc.get(..7).unwrap_or("0000-00");
std::fs::create_dir_all(store.path("recalls")).map_err(|e| format!("recalls: {e}"))?;
let logged = Logged {
time: rfc.clone(),