From 72b6126f30fd397739a7e1b9df3fb3fa5ad90c0f Mon Sep 17 00:00:00 2001 From: kikito Date: Wed, 14 Oct 2015 12:40:26 +0200 Subject: [PATCH] uses the month (%m) instead of the minute (%M) in the proposal code --- app/models/proposal.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/proposal.rb b/app/models/proposal.rb index b14d2e194..f7c1c5078 100644 --- a/app/models/proposal.rb +++ b/app/models/proposal.rb @@ -65,7 +65,7 @@ class Proposal < ActiveRecord::Base end def code - "#{Setting.value_for("proposal_code_prefix")}-#{created_at.strftime('%Y-%M')}-#{id}" + "#{Setting.value_for("proposal_code_prefix")}-#{created_at.strftime('%Y-%m')}-#{id}" end def after_commented