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 authored and sylvestre committed Mar 24, 2023
1 parent ad1e9e8 commit 3081b15
Show file tree
Hide file tree
Showing 4 changed files with 107 additions and 201 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 3081b15

Please sign in to comment.