diff --git a/src/routes/auth.rs b/src/routes/auth.rs index 8e2f096..75b2358 100644 --- a/src/routes/auth.rs +++ b/src/routes/auth.rs @@ -62,7 +62,8 @@ async fn login( let token = session.token(); let mut response: Response = - Json(json!({ "session_token": token, "expires_at": session.expires_at })).into_response(); + Json(json!({ "session_token": token, "expires_at": session.expires_at.and_utc() })) + .into_response(); response.headers_mut().insert( SET_COOKIE,