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:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user