Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions gix-date/tests/time/format.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,14 @@ fn git_default() {
);
}

#[test]
fn bad_offset() {
assert_eq!(
time_bad_offset().format(gix_date::time::format::DEFAULT),
"Wed Jan 24 22:36:22 2018 -3407"
);
}

fn time() -> Time {
Time {
seconds: 123456789,
Expand All @@ -94,3 +102,10 @@ fn time_dec1() -> Time {
offset: 9000,
}
}

fn time_bad_offset() -> Time {
Time {
seconds: 1516956202,
offset: -122820,
}
}
Loading