From 8e62cebcb35fe5b9308af0a0680dc981118b3cf4 Mon Sep 17 00:00:00 2001 From: codersquid Date: Fri, 9 May 2014 10:34:00 -0500 Subject: [PATCH] use 24 hour time --- symposion/schedule/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/symposion/schedule/forms.py b/symposion/schedule/forms.py index 5f6a097a..206c4bdf 100644 --- a/symposion/schedule/forms.py +++ b/symposion/schedule/forms.py @@ -78,7 +78,7 @@ def _get_start_end_times(self, data): times = [] for x in [data[self.START_KEY], data[self.END_KEY]]: try: - time_obj = time.strptime(x, '%I:%M %p') + time_obj = time.strptime(x, '%H:%M') except: return messages.ERROR, u'Malformed time found: %s.' % x time_obj = datetime(100, 1, 1, time_obj.tm_hour, time_obj.tm_min, 00)