Changes
2 changed files (+29/-0)
-
-
@@ -175,6 +175,13 @@ self.utc = true;return; } // For compatibility. // TODO: Delete this once migration is complete. if (std.mem.eql(u8, "utc", arg)) { self.utc = true; return; } if (std.mem.eql(u8, "--gmt", arg)) { std.log.warn("--gmt is deprecated. Use --utc instead.", .{}); self.utc = true;
-
-
-
@@ -108,3 +108,25 @@ try std.testing.expectEqual(legacy.term.Exited, new.term.Exited);try std.testing.expectEqualStrings(legacy.stderr, new.stderr); try std.testing.expectEqualStrings(legacy.stdout, new.stdout); } test "Should behave same with UTC flag" { const legacy = try list(std.testing.allocator, .{ .bin = config.legacy_bin, .tz = "Europe/Paris", .utc = true, }); defer std.testing.allocator.free(legacy.stderr); defer std.testing.allocator.free(legacy.stdout); const new = try list(std.testing.allocator, .{ .bin = config.new_bin, .tz = "Europe/Paris", .utc = true, }); defer std.testing.allocator.free(new.stderr); defer std.testing.allocator.free(new.stdout); try std.testing.expectEqual(legacy.term.Exited, new.term.Exited); try std.testing.expectEqualStrings(legacy.stderr, new.stderr); try std.testing.expectEqualStrings(legacy.stdout, new.stdout); }
-