Skip to content

Commit d8bcda7

Browse files
authored
Update format_modifiers.rs
1 parent 6fef1a3 commit d8bcda7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/uu/date/src/format_modifiers.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ fn apply_modifiers(value: &str, parsed: &ParsedSpec<'_>) -> Result<String, Forma
476476
}
477477
} else if specifier.ends_with('N') {
478478
if effective_width <= get_default_width(specifier) {
479-
result.truncate(3);
479+
result.truncate(effective_width);
480480
}
481481
}
482482

0 commit comments

Comments
 (0)