Fix clock example doesn't get the correct local time under unix system

There is a long-standing problem (https://github.com/time-rs/time/issues/293) that has not yet been solved by time-rs
Switch to chrono as it seemed to solve the problem (https://github.com/chronotope/chrono/pull/677)
This commit is contained in:
Skygrango 2024-05-03 13:04:39 +08:00
parent fe240a93aa
commit f9124470b4
2 changed files with 13 additions and 16 deletions

View file

@ -8,6 +8,5 @@ publish = false
[dependencies]
iced.workspace = true
iced.features = ["canvas", "tokio", "debug"]
time = { version = "0.3", features = ["local-offset"] }
chrono = { version = "0.4", features = [ "clock" ] }
tracing-subscriber = "0.3"