lib/verdict/experiment.rb in verdict-0.4.0 vs lib/verdict/experiment.rb in verdict-0.4.1

- old
+ new

@@ -74,10 +74,12 @@ @segmenter end def started_at @started_at ||= @storage.retrieve_start_timestamp(self) + rescue Verdict::StorageError => e + nil end def started? !@started_at.nil? end @@ -262,7 +264,9 @@ started_now end def ensure_experiment_has_started @started_at ||= @storage.retrieve_start_timestamp(self) || set_start_timestamp + rescue Verdict::StorageError + @started_at ||= Time.now.utc end end