From 845be1b86554eaa60a0eed84b0b39ee958a3740d Mon Sep 17 00:00:00 2001 From: Kashav Madan Date: Wed, 27 Apr 2016 21:52:22 -0400 Subject: [PATCH] Patch 12 pm issue 12 pm -> 24:00 -> 86400 seconds --- uoftscrapers/scrapers/food/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uoftscrapers/scrapers/food/__init__.py b/uoftscrapers/scrapers/food/__init__.py index cee3e44..cc09887 100644 --- a/uoftscrapers/scrapers/food/__init__.py +++ b/uoftscrapers/scrapers/food/__init__.py @@ -93,7 +93,7 @@ def conv_time(t): else: h = int(time) - h += 12 if period == 'p.m.' else 0 + h += 12 if period == 'p.m.' and h != 12 else 0 return (60 * 60 * h) + (60 * m) headers = {