diff --git a/crates/nu-command/src/conversions/into/datetime.rs b/crates/nu-command/src/conversions/into/datetime.rs index fd183b43bd..dcb37291af 100644 --- a/crates/nu-command/src/conversions/into/datetime.rs +++ b/crates/nu-command/src/conversions/into/datetime.rs @@ -507,7 +507,14 @@ mod tests { } #[test] + #[ignore] fn takes_a_date_format_without_timezone() { + // Ignoring this test for now because we changed the human-date-parser to use + // the users timezone instead of UTC. We may continue to tweak this behavior. + // Another hacky solution is to set the timezone to UTC in the test, which works + // on MacOS and Linux but hasn't been tested on Windows. Plus it kind of defeats + // the purpose of a "without_timezone" test. + // std::env::set_var("TZ", "UTC"); let date_str = Value::test_string("16.11.1984 8:00 am"); let fmt_options = Some(DatetimeFormat("%d.%m.%Y %H:%M %P".to_string())); let args = Arguments {