Skip to content

Commit

Permalink
Ensure time strings are parsed lowercase
Browse files Browse the repository at this point in the history
  • Loading branch information
apbassett committed Oct 16, 2024
1 parent 3bbaff4 commit 07a8df1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion howso/utilities/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -1488,7 +1488,7 @@ def infer_time_format(time_str: str) -> str:
ampm = match.group("ampm")
if ampm:
# Ensure whitespace or lackthereof is preserved
split = time_str.split(' ')
split = time_str.lower().split(' ')
format_string += ' %p' if "am" in split or "pm" in split else '%p'

return format_string

0 comments on commit 07a8df1

Please sign in to comment.