stuff
All checks were successful
Build and Test / sonic-transformed (push) Successful in 3m33s
Build and Test / fast-racing-neo (push) Successful in 3m46s
Build and Test / mario-tennis (push) Successful in 3m46s
Build and Test / puyopuyo (push) Successful in 4m11s
Build and Test / wii-u-chat (push) Successful in 4m18s
Build and Test / wii-sports-club (push) Successful in 4m33s
Build and Test / minecraft-wiiu (push) Successful in 4m33s
Build and Test / splatoon (push) Successful in 4m33s
Build and Test / splatoon-testfire (push) Successful in 4m35s
Build and Test / friends (push) Successful in 5m8s
Build and Test / super-mario-maker (push) Successful in 5m12s

This commit is contained in:
Maple Nebel 2026-07-08 03:01:24 +02:00
commit 865a9e1247
2 changed files with 10 additions and 4 deletions

View file

@ -93,7 +93,7 @@ impl KerberosDateTime {
((self.0 >> 12) & 0b11111) as u8
}
pub const fn get_days(&self) -> u8 {
((self.0 >> 17) & 0b111111) as u8
((self.0 >> 17) & 0b11111) as u8
}
pub const fn get_month(&self) -> u8 {
((self.0 >> 22) & 0b1111) as u8
@ -235,6 +235,8 @@ mod test {
);
println!("{}", time.to_regular_time().to_rfc2822());
assert_eq!(KerberosDateTime::PRACTICALLY_NEVER, time)
assert_eq!(KerberosDateTime::PRACTICALLY_NEVER, time);
println!("{}", KerberosDateTime(134222053376));
}
}

View file

@ -8,7 +8,7 @@ use std::sync::{LazyLock, Weak};
use base64::{Engine as _, engine::general_purpose};
use bytemuck::{Pod, Zeroable, bytes_of};
use chrono::{NaiveDateTime, Utc};
use chrono::{NaiveDateTime, TimeZone, Utc};
use futures::StreamExt;
use hex::decode;
use hmac::Mac;
@ -421,7 +421,11 @@ macro_rules! friend_request_from_record {
basic_info: basic_principal_from_record!($record),
request_message: FriendRequestMessage {
data: Data {},
expires_on: KerberosDateTime::PRACTICALLY_NEVER,
expires_on: KerberosDateTime::from_naive(
Utc.timestamp_opt(Utc::now().timestamp() + 2592000, 0)
.unwrap()
.naive_utc(),
),
friend_request_id: $record.id,
game_key: GameKey {
data: Data {},