lib/servicenow/change.rb in servicenow-1.1.0 vs lib/servicenow/change.rb in servicenow-1.1.1
- old
+ new
@@ -28,11 +28,11 @@
def start(extra={})
url = format('%s/change_request/%s', client.snow_table_url, sys_id)
query = {
state: states['work in progress'],
- work_start: Time.zone.now
+ work_start: Time.now.utc
}.merge(extra)
response = client.send_request(url, query, :patch)
change
end
@@ -45,10 +45,10 @@
def end_change(extra={})
url = format('%s/change_request/%s', client.snow_table_url, sys_id)
query = {
state: states['work complete'],
- work_end: Time.zone.now
+ work_end: Time.now.utc
}.merge(extra)
response = client.send_request(url, query, :patch)
change
end
\ No newline at end of file