lib/origin/extensions/numeric.rb in origin-1.0.0 vs lib/origin/extensions/numeric.rb in origin-1.0.1
- old
+ new
@@ -13,10 +13,10 @@
#
# @return [ Time ] The time representation at UTC midnight.
#
# @since 1.0.0
def __evolve_date__
- time = ::Time.at(self)
+ time = ::Time.at(self).utc
::Time.utc(time.year, time.month, time.day, 0, 0, 0, 0)
end
# Evolve the numeric value into a mongo friendly time.
#