{"record":{"id":"31d8490cc93c02ff","repo":"ajeetdsouza/zoxide","slug":"invalid-timestamp-timestamp","errorCode":null,"errorMessage":"invalid timestamp: {timestamp:?}","messagePattern":"invalid timestamp: (.+?)","errorType":"exception","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/ee594e690642c7d86edd960603dcc1950c02baab/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":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"ee594e690642c7d86edd960603dcc1950c02baab","analyzedAt":"2026-08-16T10:52:10.953Z","schemaVersion":2},"datasetVersion":"2026-08-16T13:17:31.715Z"}