Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Make activate console expiry link use local_time
  • Loading branch information
scsmith committed Mar 7, 2012
1 parent 604a129 commit 1913515
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/brightbox-cli/commands/servers-activate-console.rb
Expand Up @@ -17,7 +17,8 @@ module Brightbox
info "Activating console for server #{s}"
r = s.activate_console
url = "#{r["console_url"]}/?password=#{r["console_token"]}"
consoles << { :url => url, :token => r["console_token"], :expires => r["console_token_expires"] }
expires = Time.parse(r["console_token_expires"])
consoles << { :url => url, :token => r["console_token"], :expires => expires.localtime.to_s }
end

render_table(consoles, global_options.merge(:fields => [:url, :token, :expires], :resize => false))
Expand Down

0 comments on commit 1913515

Please sign in to comment.