chrono icon indicating copy to clipboard operation
chrono copied to clipboard

cross compile for aarch64 still get Utc time even though on Local

Open dobefore opened this issue 3 years ago • 0 comments

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

dobefore avatar Nov 12 '21 09:11 dobefore