Commit c76d793
Fix src/commands/tag.rs
The DateTime::from_timestamp(0, 0).unwrap_or_else(Utc::now) chain is problematic. If DateTime::from_timestamp(0, 0) fails (which is extremely unlikely), it falls back to the current time, making it inconsistent with the documented behavior of using Unix epoch as a fallback for data corruption. Consider using DateTime::from_timestamp(0, 0).unwrap() or a more explicit error handling approach.
Co-authored-by: Copilot <[email protected]>1 parent ff3fc89 commit c76d793
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
427 | 427 | | |
428 | 428 | | |
429 | 429 | | |
430 | | - | |
| 430 | + | |
431 | 431 | | |
432 | 432 | | |
433 | 433 | | |
| |||
0 commit comments