Skip to content

Commit

Permalink
Fix from_unix_timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
fschutt committed Feb 3, 2025
1 parent 0d5db2a commit 2f490a8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/date.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,14 @@ mod js_sys_date {
mod unix_epoch_stub_date {
use time::Month;

#[derive(Debug, Clone)]
#[derive(Debug, PartialEq, Copy, Clone, Eq, Ord, PartialOrd, Hash)]
pub struct OffsetDateTime;
impl OffsetDateTime {

pub fn from_unix_timestamp(_: usize) -> Result<Self, String> {
Ok(OffsetDateTime)
}

#[inline(always)]
pub fn now_utc() -> Self {
OffsetDateTime
Expand Down

0 comments on commit 2f490a8

Please sign in to comment.