title: Date Format In Heroku
body: <p>I'm a total newbie with with Rails and Heroku.  I created an app with basic CRUD, which I  have deployed to Heroku.  A certain entity has a date property.  When I create or update with this value:</p>
  
  <blockquote>
    <p>09/04/2011</p>
  </blockquote>
  
  <p>It saves as:</p>
  
  <blockquote>
    <p>04/09/2011</p>
  </blockquote>
  
  <p>Running locally (with SQLite) I do not see this behavior.  I wondered if I needed to be more explicit about culture, so I modified config/locales/en.yml like so:</p>
  
  <pre><code>en:
    hello: "Hello world"  
    date:
      formats:
        default: "%m/%d/%Y"
  </code></pre>
  
  <p>This does not seem to have any affect.  Ideas?</p>
  
  <p>UPDATE: Here is the controller action:</p>
  
  <pre><code>def create
      @entry = Entry.new(params[:entry])
  
      respond_to do |format|
        if @entry.save
          format.html { redirect_to entries_path }
          format.xml  { render :xml =&gt; @entry, :status =&gt; :created, :location =&gt; @entry }
        else
          format.html { render :action =&gt; "new" }
          format.xml  { render :xml =&gt; @entry.errors, :status =&gt; :unprocessable_entity }
        end
      end
    end
  </code></pre>
  
  <p>Here is the view:</p>
  
  <pre><code>&lt;%= f.text_field :date, :value =&gt; (@entry.date.blank? ? '' : @entry.date.strftime('%m/%d/%Y')), :class =&gt; 'date' %&gt;
  </code></pre>
  
  <p>Here is the model:</p>
  
  <pre><code>class Entry &lt; ActiveRecord::Base
  end
  </code></pre>