Skip to content

Commit

Permalink
fix: chrome expires
Browse files Browse the repository at this point in the history
  • Loading branch information
thewh1teagle committed Oct 9, 2023
1 parent afb71ef commit 55d975f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rookie-rs/src/date.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ pub fn internet_explorer_timestamp(timestamp: u64) -> Option<u64> {


#[cfg(target_os = "macos")]
pub fn safari_timestamp(timestamp: u64) -> u64 {
pub fn safari_timestamp(timestamp: u64) -> Option<u64> {
if timestamp <= 0 {
return None;
}
let timestamp = timestamp + 978307200f64 as u64;
return unix_timestamp(timestamp);
unix_timestamp(timestamp)
}

fn unix_timestamp(timestamp: u64) -> Option<u64> {
Expand Down

0 comments on commit 55d975f

Please sign in to comment.