We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6bedec5 commit ada1886Copy full SHA for ada1886
src/uu/date/src/date.rs
@@ -288,7 +288,7 @@ pub fn uumain(args: impl uucore::Args) -> UResult<()> {
288
// GNU `date` uses `%N` for nano seconds, however crate::chrono uses `%f`
289
let format_string = &format_string
290
.replace("%N", "%f")
291
- .replace("%Z", tz_abbreviation);
+ .replace("%Z", tz_abbreviation.unwrap_or("UTC"));
292
// Refuse to pass this string to chrono as it is crashing in this crate
293
if format_string.contains("%#z") {
294
return Err(USimpleError::new(
0 commit comments