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 300b565 commit 653f30fCopy full SHA for 653f30f
lib/shared/src/conversion.rs
@@ -184,11 +184,11 @@ fn parse_bool(s: &str) -> Result<bool, Error> {
184
185
/// Does the format specifier have a time zone option?
186
fn format_has_zone(fmt: &str) -> bool {
187
- fmt.find("%Z").is_some()
188
- || fmt.find("%z").is_some()
189
- || fmt.find("%:z").is_some()
190
- || fmt.find("%#z").is_some()
191
- || fmt.find("%+").is_some()
+ fmt.contains("%Z")
+ || fmt.contains("%z")
+ || fmt.contains("%:z")
+ || fmt.contains("%#z")
+ || fmt.contains("%+")
192
}
193
194
/// Convert a timestamp with a non-UTC time zone into UTC
0 commit comments