You've already forked parse_datetime
mirror of
https://github.com/uutils/parse_datetime.git
synced 2026-06-10 16:13:15 -07:00
Use str.ends_with for patterns ending in Z
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
This commit is contained in:
+1
-1
@@ -89,7 +89,7 @@ mod format {
|
||||
|
||||
/// Whether the pattern ends in the character `Z`.
|
||||
pub(crate) fn is_zulu(pattern: &str) -> bool {
|
||||
pattern == YYYYMMDDHHMMSS_HYPHENATED_ZULU || pattern == YYYYMMDDHHMMSS_T_SEP_HYPHENATED_ZULU
|
||||
pattern.ends_with('Z')
|
||||
}
|
||||
|
||||
/// Patterns for datetimes with timezones.
|
||||
|
||||
Reference in New Issue
Block a user