From 02ba8c63c5575addd5211ef0bb58b5455923d1c3 Mon Sep 17 00:00:00 2001 From: Adam Cattermole Date: Wed, 6 Nov 2024 15:15:48 +0000 Subject: [PATCH] Set the protobuf timestamp to the correct value Signed-off-by: Adam Cattermole --- src/service/auth.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(), }