Skip to content

Commit 38b0ce5

Browse files
committed
change format specifiers
1 parent e91fa11 commit 38b0ce5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

datetime.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ mod tests {
295295

296296
fn time_str<T: super::Time>(t: T) -> String {
297297
let tm = t.tm();
298-
format!("{}{}", tm.strftime("%H:%M:%S").unwrap(), if tm.tm_nsec != 0 { format!("{:09i}", tm.tm_nsec as int) } else { "".to_string() })
298+
format!("{}{}", tm.strftime("%H:%M:%S").unwrap(), if tm.tm_nsec != 0 { format!("{:09b}", tm.tm_nsec as int) } else { "".to_string() })
299299

300300
}
301301

@@ -309,7 +309,7 @@ mod tests {
309309

310310
fn datetime_str<T: super::DateTime>(t: T) -> String {
311311
let tm = t.tm();
312-
format!("{}{}", tm.strftime("%Y-%m-%d %H:%M:%S").unwrap(), if tm.tm_nsec != 0 { format!("{:09i}", tm.tm_nsec as int) } else { "".to_string() })
312+
format!("{}{}", tm.strftime("%Y-%m-%d %H:%M:%S").unwrap(), if tm.tm_nsec != 0 { format!("{:09b}", tm.tm_nsec as int) } else { "".to_string() })
313313

314314
}
315315

0 commit comments

Comments
 (0)