deps: update chrono to 0.4

Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
This commit is contained in:
Igor Gnatenko
2018-07-25 22:44:32 +02:00
parent 35fc95b066
commit e634d3f139
6 changed files with 17 additions and 17 deletions

View File

@@ -1,6 +1,6 @@
use types::{ApplicationSecret, FlowType, JsonError};
use chrono::UTC;
use chrono::Utc;
use hyper;
use hyper::header::ContentType;
use serde_json as json;
@@ -107,7 +107,7 @@ impl<C> RefreshFlow<C>
token_type: t.token_type,
refresh_token: refresh_token.to_string(),
expires_in: None,
expires_in_timestamp: Some(UTC::now().timestamp() + t.expires_in),
expires_in_timestamp: Some(Utc::now().timestamp() + t.expires_in),
});
&self.result