title: Ruby/Rails - DateTime parsing
body: <p>I'm trying to return a date as a string but remove the first 0 from the hour returned.</p>
  
  <p>This is the code I'm using:</p>
  
  <pre><code>t = Time.new
  
  current_date = Time.local(t.year, t.month, t.day, t.hour, t.min/30*30)
  time_str = current_date.strftime("%I.%M+%p").downcase
  
  puts time_str
  
  Outputs:
  03.00+pm
  
  Expected output:
  3.00+pm # need to remove the last zero from the hour(s)
  </code></pre>