diff --git a/crates/nu-command/tests/commands/into_datetime.rs b/crates/nu-command/tests/commands/into_datetime.rs index 67063208b0..83f36a7c26 100644 --- a/crates/nu-command/tests/commands/into_datetime.rs +++ b/crates/nu-command/tests/commands/into_datetime.rs @@ -16,9 +16,9 @@ fn into_datetime_from_record() { #[test] fn into_datetime_from_record_defaults() { - let actual = nu!(r#"{year: 2025} | into datetime | into record"#); + let actual = nu!(r#"{year: 2025, timezone: '+02:00'} | into datetime | into record"#); let expected = nu!( - r#"{year: 2025, month: 1, day: 1, hour: 0, minute: 0, second: 0, millisecond: 0, microsecond: 0, nanosecond: 0, timezone: '+00:00'}"# + r#"{year: 2025, month: 1, day: 1, hour: 0, minute: 0, second: 0, millisecond: 0, microsecond: 0, nanosecond: 0, timezone: '+02:00'}"# ); assert_eq!(expected.out, actual.out);