From f331a90f3d1614a7fa79dd6db0a86c053f7f63ac Mon Sep 17 00:00:00 2001 From: Justin Wilson Date: Fri, 17 May 2013 19:02:05 -0400 Subject: [PATCH] Use DateTime.strptime instead of Time --- lib/split/experiment.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/split/experiment.rb b/lib/split/experiment.rb index 3534cf92..c6275df5 100644 --- a/lib/split/experiment.rb +++ b/lib/split/experiment.rb @@ -157,7 +157,7 @@ def reset_winner def start_time t = Split.redis.hget(:experiment_start_times, @name) - Time.parse(t) if t + return DateTime.strptime(t, '%m/%d/%Y') end def next_alternative