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 Mar 26, 2023
1 parent 76793d5 commit f98247c
Show file tree
Hide file tree
Showing 4 changed files with 106 additions and 207 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 f98247c

Please sign in to comment.