Skip to content

Commit

Permalink
Set the protobuf timestamp to the correct value
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Cattermole <[email protected]>
  • Loading branch information
adam-cattermole committed Nov 6, 2024
1 parent 3936370 commit 02ba8c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/service/auth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ impl AuthService {
.expect("Error!")
.map_or(Timestamp::new(), |date_time: DateTime<FixedOffset>| {
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(),
}
Expand Down

0 comments on commit 02ba8c6

Please sign in to comment.