Skip to content

Commit

Permalink
Update Cargo.lock
Browse files Browse the repository at this point in the history
  • Loading branch information
rafalmiel committed Mar 17, 2024
1 parent e6a022a commit aec8269
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 33 deletions.
62 changes: 31 additions & 31 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion cykusz-rs/src/arch/x86_64/dev/rtc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ fn read_naive_date() -> chrono::NaiveDateTime {
}

fn set_date() {
UNIX_TX.store(read_naive_date().timestamp(), Ordering::SeqCst);
UNIX_TX.store(read_naive_date().and_utc().timestamp(), Ordering::SeqCst);
}

pub fn init() {
Expand Down
2 changes: 1 addition & 1 deletion userspace/src/bin/shell/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ fn exec(cmd: &str) {
}
} else if cmd.starts_with("date") {
if let Ok(t) = syscall::time() {
let time = chrono::NaiveDateTime::from_timestamp_opt(t as i64, 0).unwrap();
let time = chrono::DateTime::from_timestamp(t as i64, 0).unwrap();
println!(
"{}-{}-{} {}:{}:{}",
time.year(),
Expand Down

0 comments on commit aec8269

Please sign in to comment.