Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Rename TWELVEHOUR to TWELVE_HOUR
  • Loading branch information
cakebaker committed Apr 22, 2025
commit 46a82b70b3d20b62d590a1f375cc8b34d57d95c8
4 changes: 2 additions & 2 deletions src/parse_time_only_str.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use regex::Regex;
mod time_only_formats {
pub const HH_MM: &str = "%R";
pub const HH_MM_SS: &str = "%T";
pub const TWELVEHOUR: &str = "%r";
pub const TWELVE_HOUR: &str = "%r";
}

/// Convert a military time zone string to a time zone offset.
Expand Down Expand Up @@ -55,7 +55,7 @@ fn parse_time_with_offset_multi(
for fmt in [
time_only_formats::HH_MM,
time_only_formats::HH_MM_SS,
time_only_formats::TWELVEHOUR,
time_only_formats::TWELVE_HOUR,
] {
let parsed = match NaiveTime::parse_from_str(s, fmt) {
Ok(t) => t,
Expand Down