Browse Source

clock: generic century reading

master
Cadey Ratio 11 months ago
parent
commit
e50e23d0db
2 changed files with 1 additions and 2 deletions
  1. +1
    -1
      src/clock.rs
  2. +0
    -1
      src/main.rs

+ 1
- 1
src/clock.rs View File

@ -9,7 +9,7 @@ lazy_static! {
}
pub fn current_time() -> DateTime<Utc> {
let rtc = CLOCK.lock().read_rtc(CMOSCenturyHandler::CurrentYear(2019));
let rtc = CLOCK.lock().read_rtc(CMOSCenturyHandler::CurrentYear(2000));
return Utc
.ymd(
rtc.year.try_into().unwrap(),


+ 0
- 1
src/main.rs View File

@ -24,7 +24,6 @@ fn kernel_main(boot_info: &'static BootInfo) -> ! {
println!("now: {}", now.to_string());
println!("Running WASM:");
wasm::run();
println!("[ ] success");


Loading…
Cancel
Save