Skip to content

Commit

Permalink
Fixing the bug when the date start with a 0. See http://www.redmine.o…
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-denizet committed Jan 13, 2012
1 parent 5bad45b commit 4d3a242
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/attach_screenshot_controller.rb
Expand Up @@ -33,6 +33,6 @@ def index
private private


def make_tmpname(date, name = "screenshot.png") def make_tmpname(date, name = "screenshot.png")
sprintf('%d_%d%s', User.current.id, date, name) sprintf('%d_%s%s', User.current.id, date, name)
end end
end end

0 comments on commit 4d3a242

Please sign in to comment.