remove timezone offset from feeds calculations

This commit is contained in:
Lee Lawlor committed 2014-12-03 10:50:25 -05:00
1 parent 435fe52e4a
commit fca4dca38d
2 files changed
+2 -4

No files matched your search

+1 -3
View File
@@ -103,9 +103,7 @@ module FeedHelper
# get the time floored to the correct number of seconds
def get_floored_time(input_time, seconds)
floored_seconds = (input_time.to_f / seconds).floor * seconds
# offset the seconds by the current time zone offset
offset_seconds = Time.zone.now.utc_offset
return Time.at(floored_seconds - offset_seconds)
return Time.at(floored_seconds)
end
# slice feed into timescales