Skip to content

Commit e9f9b45

Browse files
committed
Rename NOTZ to NO_TZ
1 parent 678f86a commit e9f9b45

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ mod format {
105105
(YYYYMMDDHHMM_ZULU_OFFSET, 18),
106106
];
107107

108-
pub(crate) const PATTERNS_NOTZ: [(&str, usize); 9] = [
108+
pub(crate) const PATTERNS_NO_TZ: [(&str, usize); 9] = [
109109
(YYYYMMDDHHMMSS, 29),
110110
(POSIX_LOCALE, 24),
111111
(YYYYMMDDHHMMSS_HYPHENATED_ZULU, 20),
@@ -117,7 +117,7 @@ mod format {
117117
(YYYYMMDDHHMM, 12),
118118
];
119119

120-
pub(crate) const PATTERNS_DATE_NOTZ: [(&str, usize); 8] = [
120+
pub(crate) const PATTERNS_DATE_NO_TZ: [(&str, usize); 8] = [
121121
(ISO_8601, 10),
122122
(MMDDYYYY_SLASH, 10),
123123
(ISO_8601, 9),
@@ -256,7 +256,7 @@ fn parse_reference_date(date: DateTime<Local>, s: &str) -> Option<(DateTime<Fixe
256256
}
257257

258258
// DateTimes without timezone.
259-
for (pattern, n) in format::PATTERNS_NOTZ {
259+
for (pattern, n) in format::PATTERNS_NO_TZ {
260260
if s.len() >= n {
261261
if let Ok(parsed) = NaiveDateTime::parse_from_str(&s[0..n], pattern) {
262262
// Special case: `chrono` can only parse a datetime like
@@ -281,7 +281,7 @@ fn parse_reference_date(date: DateTime<Local>, s: &str) -> Option<(DateTime<Fixe
281281
}
282282

283283
// Dates without timezone.
284-
for (pattern, n) in format::PATTERNS_DATE_NOTZ {
284+
for (pattern, n) in format::PATTERNS_DATE_NO_TZ {
285285
if s.len() >= n {
286286
if let Ok(parsed) = NaiveDate::parse_from_str(&s[0..n], pattern) {
287287
match date

0 commit comments

Comments
 (0)