I have a bunch of time based strings saved per object in my db that are formatted like this:
"01:00 PM"
Doing a little bit of research I came across a post that shows you how to convert a string similar to but not exactly how mine is. The difference being the example has no colon in between the hour and minute integers, which throws a snag in the answer's conversion:
Time.strptime("1:00 PM", "%I%P").strftime("%H:%M")
# ArgumentError (invalid strptime format - `%I%P')
Is there still a way to get this conversion to work given my particular format?