mirror of
https://github.com/openai/codex.git
synced 2026-04-24 06:35:50 +00:00
Fallback to UTC for rollout download timestamps
This commit is contained in:
@@ -342,8 +342,7 @@ async fn create_meta_if_absent(
|
||||
}
|
||||
|
||||
fn build_rollout_download_path(codex_home: &Path, session_id: ThreadId) -> anyhow::Result<PathBuf> {
|
||||
let timestamp = OffsetDateTime::now_local()
|
||||
.map_err(|e| anyhow::anyhow!("failed to get local time: {e}"))?;
|
||||
let timestamp = OffsetDateTime::now_local().unwrap_or_else(|_| OffsetDateTime::now_utc());
|
||||
let format: &[FormatItem] =
|
||||
format_description!("[year]-[month]-[day]T[hour]-[minute]-[second]");
|
||||
let date_str = timestamp
|
||||
|
||||
Reference in New Issue
Block a user