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> {
|
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(),
|
||||||
|
|
|
@ -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");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue