From 08d156d02d76016dfa2da8ef512d08764c4d34fd Mon Sep 17 00:00:00 2001 From: amtoine Date: Sun, 10 Sep 2023 13:08:00 +0200 Subject: [PATCH 1/2] rename date type to datetime --- crates/nu-protocol/src/ty.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/nu-protocol/src/ty.rs b/crates/nu-protocol/src/ty.rs index 56f22af070..f59f9295be 100644 --- a/crates/nu-protocol/src/ty.rs +++ b/crates/nu-protocol/src/ty.rs @@ -122,7 +122,7 @@ impl Type { Type::Closure => String::from("closure"), Type::Bool => String::from("bool"), Type::CellPath => String::from("cell-path"), - Type::Date => String::from("date"), + Type::Date => String::from("datetime"), Type::Duration => String::from("duration"), Type::Filesize => String::from("filesize"), Type::Float => String::from("float"), @@ -152,7 +152,7 @@ impl Display for Type { Type::Closure => write!(f, "closure"), Type::Bool => write!(f, "bool"), Type::CellPath => write!(f, "cell-path"), - Type::Date => write!(f, "date"), + Type::Date => write!(f, "datetime"), Type::Duration => write!(f, "duration"), Type::Filesize => write!(f, "filesize"), Type::Float => write!(f, "float"), From 77c36156355f76d68f9cd43f4396682d31409376 Mon Sep 17 00:00:00 2001 From: amtoine Date: Sun, 10 Sep 2023 13:17:07 +0200 Subject: [PATCH 2/2] fix NUON test --- crates/nu-command/tests/format_conversions/nuon.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/nu-command/tests/format_conversions/nuon.rs b/crates/nu-command/tests/format_conversions/nuon.rs index a7f85f357e..2b499773fa 100644 --- a/crates/nu-command/tests/format_conversions/nuon.rs +++ b/crates/nu-command/tests/format_conversions/nuon.rs @@ -262,7 +262,7 @@ fn from_nuon_datetime() { "# )); - assert_eq!(actual.out, "date"); + assert_eq!(actual.out, "datetime"); } #[test]