chrono
chrono copied to clipboard
cross compile for aarch64 still get Utc time even though on Local
trafficstars
native build works perfect,its stuck on Utc time,Is there a better method to pick? thanks
let local=Local::now();
let l= format!("{:02}:{:02}", local.hour(), local.minute());
let utc=Utc::now();
let u= format!("{:02}:{:02}", utc.hour(), utc.minute());
println!("Local {}",&l);
println!("Utc {}",&u);
output from Android termux(shell)
Local 09:21
Utc 09:21