mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[openstack|compute] Assert Timezone to UTC and fix format for OS on get_usage
Signed-off-by: Nelvin Driz <nelvindriz@live.com>
This commit is contained in:
parent
e82ad1631f
commit
6a2c9dafe7
1 changed files with 18 additions and 18 deletions
|
@ -5,8 +5,8 @@ module Fog
|
|||
|
||||
def get_usage(tenant_id, date_start, date_end)
|
||||
params = Hash.new
|
||||
params[:start] = date_start.iso8601.gsub(/\+.*/, '')
|
||||
params[:end] = date_end.iso8601.gsub(/\+.*/, '')
|
||||
params[:start] = date_start.utc.iso8601.chop!
|
||||
params[:end] = date_end.utc.iso8601.chop!
|
||||
request(
|
||||
:expects => [200, 203],
|
||||
:method => 'GET',
|
||||
|
|
Loading…
Reference in a new issue