Skip to content

Commit 5962bd6

Browse files
jgillichreem
authored andcommitted
fix(time): The time crate has moved to out-of-tree.
This adds a dependency on the time crate found in rust-lang/time and fixes a field rename from tm_gmtoff to tm_utcoff. add time dependency tm_gmtoff has been renamed to tm_utcoff
1 parent 5ec8529 commit 5962bd6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

common/date.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ impl fmt::Show for Date {
3030
let Date(ref tm) = *self;
3131
// bummer that tm.strftime allocates a string. It would nice if it
3232
// returned a Show instead, since I don't need the String here
33-
match tm.tm_gmtoff {
33+
match tm.tm_utcoff {
3434
0 => tm.rfc822().fmt(fmt),
3535
_ => tm.to_utc().rfc822().fmt(fmt)
3636
}
@@ -72,4 +72,3 @@ impl FromStr for Date {
7272
bench_header!(imf_fixdate, Date, { vec![b"Sun, 07 Nov 1994 08:48:37 GMT".to_vec()] })
7373
bench_header!(rfc_850, Date, { vec![b"Sunday, 06-Nov-94 08:49:37 GMT".to_vec()] })
7474
bench_header!(asctime, Date, { vec![b"Sun Nov 6 08:49:37 1994".to_vec()] })
75-

0 commit comments

Comments
 (0)