1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

B #4656: EC2QueryServer.rb redender launch time using the utc xmlschema

The resulting string before/after this change:

Time.at(Time.now).xmlschema
=> "2016-11-05T22:11:37+01:00"

Time.at(Time.now).utc.xmlschema
=> "2016-11-05T21:11:34Z"
This commit is contained in:
Sledge Sulaweyo 2016-11-05 22:12:37 +01:00 committed by Ruben S. Montero
parent 1ba3862b64
commit ad74e4fe2d

View File

@ -241,7 +241,7 @@ class EC2QueryServer < CloudServer
private
def render_launch_time(vm)
return "<launchTime>#{Time.at(vm["STIME"].to_i).xmlschema}</launchTime>"
return "<launchTime>#{Time.at(vm["STIME"].to_i).utc.xmlschema}</launchTime>"
end
end