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 60a6840 commit ceec888Copy full SHA for ceec888
src/infra/time.rs
@@ -3,7 +3,7 @@
3
// This will patch it to standard RFC3339 format
4
pub fn patch_rfc3339(time_str: &str) -> String {
5
if time_str.len() != 25 {
6
- let u8vec: Vec<_> = time_str.bytes().into_iter().take(19).collect();
+ let u8vec: Vec<_> = time_str.bytes().take(19).collect();
7
format!("{}+08:00", String::from_utf8(u8vec).unwrap())
8
} else {
9
time_str.to_owned()
0 commit comments