clock: generic century reading

This commit is contained in:
Cadey Ratio 2020-03-26 11:09:23 -04:00
parent ab988326ba
commit e50e23d0db
2 changed files with 1 additions and 2 deletions

View File

@ -9,7 +9,7 @@ lazy_static! {
} }
pub fn current_time() -> DateTime<Utc> { 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 return Utc
.ymd( .ymd(
rtc.year.try_into().unwrap(), rtc.year.try_into().unwrap(),

View File

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