Remove deprecation warnings, use time crate