diff --git a/Cargo.toml b/Cargo.toml index 511d2b0..cd80863 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,3 +13,6 @@ git = "https://github.com/sfackler/rust-openssl.git" [dependencies.url] git = "https://github.com/servo/rust-url" + +[dependencies.time] +git = "https://github.com/rust-lang/time" diff --git a/examples/apache_fake.rs b/examples/apache_fake.rs index 7f7dd41..0ff2535 100644 --- a/examples/apache_fake.rs +++ b/examples/apache_fake.rs @@ -35,7 +35,7 @@ impl Server for ApacheFakeServer { tm_wday: 4, // days since Sunday ~[0-6] tm_yday: 0, // days since January 1 ~[0-365] tm_isdst: 0, // Daylight Savings Time flag - tm_gmtoff: 0, // offset from UTC in seconds + tm_utcoff: 0, // offset from UTC in seconds tm_nsec: 0, // nanoseconds }); w.headers.etag = Some(headers::etag::EntityTag { diff --git a/src/http/headers/mod.rs b/src/http/headers/mod.rs index 684e0af..b3c2020 100644 --- a/src/http/headers/mod.rs +++ b/src/http/headers/mod.rs @@ -792,7 +792,7 @@ mod test { tm_wday: 0, tm_yday: 0, tm_isdst: 0, - tm_gmtoff: 0, + tm_utcoff: 0, tm_nsec: 0 } }