lib/cap_gun/presenter.rb
# Use some DateTime magicrey to convert UTC to the current time zone
# When the whole world is on Rails 2.1 (and therefore new ActiveSupport) we can use the magic timezone support there.
Use some DateTime magicrey to convert UTC to the current time zone
When the whole world is on Rails 2.1 (and therefore new ActiveSupport) we can use the magic timezone support there.
Use some DateTime magicrey to convert UTC to the current time zone When the whole world is on Rails 2 . 1 ( and therefore new ActiveSupport ) we can use the magic timezone support there .
def convert_from_utc(timestamp)
      utc_time = timestamp << "UTC" 
      datetime = DateTime.parse(utc_time)
      datetime.new_offset(local_datetime_zone_offset)
    end
def convert_from_utc ( timestamp ) utc_time = timestamp << "UTC" datetime = DateTime . parse ( utc_time ) datetime . new_offset ( local_datetime_zone_offset ) end
Use some DateTime magicrey to convert UTC to the current time zone
When the whole world is on Rails 2.1 (and therefore new ActiveSupport) we can use the magic timezone support there.
Use some DateTime magicrey to convert UTC to the current time zone When the whole world is on Rails 2 . 1 ( and therefore new ActiveSupport ) we can use the magic timezone support there .
# we know Capistrano release timestamps are UTC, but Ruby doesn't, so make it explicit
timestamp
<not_specific>