Skip to content

Commit

Permalink
Ensure time is in_time_zone
Browse files Browse the repository at this point in the history
  • Loading branch information
gangelo committed Dec 23, 2023
1 parent d7f2f0f commit 19cae0b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/dsu/models/entry_group.rb
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,8 @@ def entry_files
private

def ensure_local_time(time)
time.nil? ? Time.now : time.dup.in_time_zone
time ||= Time.now
time.in_time_zone
end
end
end
Expand Down

0 comments on commit 19cae0b

Please sign in to comment.