Consider user's timezone for default issue start date

Contributed by Jan Schulz-Hofen
This commit is contained in:
Holger Just 2011-07-25 19:16:15 +02:00
parent bf14f35223
commit d62a4f1d28
1 changed files with 1 additions and 1 deletions

View File

@ -286,7 +286,7 @@ private
render_error l(:error_no_tracker_in_project)
return false
end
@issue.start_date ||= Date.today
@issue.start_date ||= User.current.today
if params[:issue].is_a?(Hash)
@issue.safe_attributes = params[:issue]
if User.current.allowed_to?(:add_issue_watchers, @project) && @issue.new_record?