{"record":{"id":"31d8490cc93c02ff","repo":"ajeetdsouza/zoxide","slug":"invalid-timestamp-timestamp","errorCode":null,"errorMessage":"invalid timestamp: {timestamp:?}","messagePattern":"invalid timestamp: (.+?)","errorType":"console","errorClass":"ImportError","httpStatus":null,"severity":"error","filePath":"src/import/atuin.rs","lineNumber":59,"sourceCode":"    fn new(reader: BufReader<ChildStdout>, child: Child) -> Self {\n        Self { reader, buf: Vec::new(), line_num: 0, child, prev_cwd: None }\n    }\n\n    fn err(&self, source: anyhow::Error) -> ImportError {\n        ImportError { path: None, line_num: self.line_num, source }\n    }\n\n    fn parse_line(&self, line: &[u8]) -> Result<Dir<'static>, ImportError> {\n        let line =\n            str::from_utf8(line).map_err(|e| self.err(anyhow!(e).context(\"invalid utf-8\")))?;\n\n        let (timestamp, path) =\n            line.split_once('\\t').ok_or_else(|| self.err(anyhow!(\"invalid entry: {line}\")))?;\n\n        let timestamp_format =\n            time::macros::format_description!(\"[year]-[month]-[day] [hour]:[minute]:[second]\");\n        let timestamp = time::PrimitiveDateTime::parse(timestamp, timestamp_format)\n            .map_err(|e| self.err(anyhow!(e).context(format!(\"invalid timestamp: {timestamp:?}\"))))?\n            .assume_utc()\n            .unix_timestamp();\n\n        let dir = Dir {\n            path: Cow::Owned(path.to_string()),\n            rank: 1.0,\n            last_accessed: timestamp as Epoch,\n        };\n        Ok(dir)\n    }\n}\n\nimpl Iterator for Iter {\n    type Item = Result<Dir<'static>, ImportError>;\n\n    fn next(&mut self) -> Option<Self::Item> {\n        loop {\n            self.buf.clear();","sourceCodeStart":41,"sourceCodeEnd":77,"githubUrl":"https://github.com/ajeetdsouza/zoxide/blob/8a3f76da90cc12547b593ca210b8fdfb1631d07f/src/import/atuin.rs#L41-L77","documentation":"Error \"invalid timestamp: {timestamp:?}\" thrown in ajeetdsouza/zoxide.","triggerScenarios":"Thrown at src/import/atuin.rs:59 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Fix the malformed timestamp in the atuin history entry","Update atuin so its history format matches the expected schema"],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"8a3f76da90cc12547b593ca210b8fdfb1631d07f","analyzedAt":"2026-08-19T03:25:13.308Z","contentChangedAt":"2026-08-19T03:25:13.308Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}