diff --git a/src/service/auth.rs b/src/service/auth.rs index c8e4a4d2..37884cde 100644 --- a/src/service/auth.rs +++ b/src/service/auth.rs @@ -100,8 +100,8 @@ impl AuthService { .expect("Error!") .map_or(Timestamp::new(), |date_time: DateTime| { Timestamp { - nanos: date_time.nanosecond() as i32, - seconds: date_time.second() as i64, + nanos: date_time.timestamp_subsec_nanos() as i32, + seconds: date_time.timestamp(), unknown_fields: Default::default(), cached_size: Default::default(), }