clock: generic century reading
This commit is contained in:
parent
ab988326ba
commit
e50e23d0db
|
@ -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(),
|
||||
|
|
|
@ -24,7 +24,6 @@ fn kernel_main(boot_info: &'static BootInfo) -> ! {
|
|||
println!("now: {}", now.to_string());
|
||||
|
||||
println!("Running WASM:");
|
||||
|
||||
wasm::run();
|
||||
println!("[ ] success");
|
||||
|
||||
|
|
Loading…
Reference in New Issue