FIX: topic auto-close uses the client's time zone

This commit is contained in:
Neil Lalonde
2015-05-27 12:22:34 -04:00
parent 23eadc3fb1
commit ea8cf1a208
6 changed files with 67 additions and 21 deletions

View File

@ -107,7 +107,7 @@ class TopicCreator
def setup_auto_close_time(topic)
return unless @opts[:auto_close_time].present?
return unless @guardian.can_moderate?(topic)
topic.set_auto_close(@opts[:auto_close_time], @user)
topic.set_auto_close(@opts[:auto_close_time], {by_user: @user})
end
def process_private_message(topic)