I'd do:

```ruby
in_format, out_format = if has_time_component?(post['date'])
  ['%Y-%m-%d %H:%M %z'] * 2
else
  ['%m/%d/%Y', '%Y-%m-%d %H:%M']
end
```