Skip to content

Commit

Permalink
touch: move from time to chrono
Browse files Browse the repository at this point in the history
This allows us to work with daylight savings time which is necessary to enable one of the tests. The leap second calculation and parsing are also ported over. A bump in the chrono version is necessary to use NaiveTime::MIN.
  • Loading branch information
tertsdiepraam committed Apr 7, 2023
1 parent da15928 commit 795030a
Show file tree
Hide file tree
Showing 4 changed files with 116 additions and 210 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/uu/touch/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ path = "src/touch.rs"
[dependencies]
filetime = { workspace=true }
clap = { workspace=true }
time = { workspace=true, features = ["parsing", "formatting", "local-offset", "macros"] }
chrono = { workspace=true }
uucore = { workspace=true, features=["libc"] }

[target.'cfg(target_os = "windows")'.dependencies]
Expand Down
Loading

0 comments on commit 795030a

Please sign in to comment.