File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
1
[package ]
2
2
3
3
name = " conduit-static"
4
- version = " 0.8.1 "
4
+ version = " 0.9.0-alpha.0 "
5
5
authors = [" wycats@gmail.com" ,
6
6
" Alex Crichton <alex@alexcrichton.com>" ]
7
7
description = " Middleware for serving static files for conduit"
8
8
repository = " https://github.com/conduit-rust/conduit-static"
9
9
license = " MIT"
10
10
11
11
[dependencies ]
12
- conduit = " 0.8 "
12
+ conduit = " 0.9.0-alpha.0 "
13
13
conduit-mime-types = " 0.7"
14
14
time = " 0.1"
15
- filetime = " 0.1 "
15
+ filetime = " 0.2 "
16
16
17
17
[dev-dependencies ]
18
- civet = " 0.9 "
19
- conduit-test = " 0.8 "
18
+ civet = " 0.12.0-alpha.0 "
19
+ conduit-test = " 0.9.0-alpha.0 "
20
20
tempdir = " 0.3"
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ impl Handler for Static {
48
48
}
49
49
let mtime = FileTime :: from_last_modification_time ( & data) ;
50
50
let ts = time:: Timespec {
51
- sec : mtime. seconds_relative_to_1970 ( ) as i64 ,
51
+ sec : mtime. unix_seconds ( ) as i64 ,
52
52
nsec : mtime. nanoseconds ( ) as i32 ,
53
53
} ;
54
54
let tm = time:: at ( ts) . to_utc ( ) ;
You can’t perform that action at this time.
0 commit comments