mirror of
https://github.com/nushell/nushell.git
synced 2024-11-22 16:33:37 +01:00
b0600449e5
With this PR i try to resolve #11751 # Description I am rather new to Rust so if anything is not the way it should be please let me know. As described in the title I just fixed the date conversion in the to and from toml commands as i thought it would be a good first issue. The example of the original issue will now work as follows: ``` ~> {date: 2024-02-02} | to toml date = "2024-02-02T00:00:00+00:00" ~> "dob = 1979-05-27T07:32:00-08:00" | from toml ╭─────┬───────────────────────────╮ │ dob │ 44 years ago | ╰─────┴───────────────────────────╯ ``` The `from toml` command now returns a nushell date which is displayed as `44 years ago` in this case. # User-Facing Changes none # Tests + Formatting all tests pass and formatting has been applied --------- Co-authored-by: dannou812 <dannou281@gmail.com> Co-authored-by: Darren Schroeder <343840+fdncred@users.noreply.github.com> |
||
---|---|---|
.. | ||
src | ||
tests | ||
Cargo.toml | ||
LICENSE |