Project

General

Profile

Bug #31705

hammer cli --start-at not honoring iso8601 timezone

Added by Adam Ruzicka over 1 year ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Foreman

Description

documentation claims iso8601 timezone support with hammer, but it does not.

Job created with below syntax

hammer job-invocation create --job-template "Run Command - SSH Default" --inputs command="/bin/echo this works" --search-query "host_collection ~ test collection" --start-at "2021-01-07T14:05:00-05:00"

Below is the code for remote execution

foreman_remote_execution-3.3.7.2/app/models/job_invocation_composer.rb
...
Time.parse(datetime).strftime('%Y-%m-%d %H:%M')
...

Associated revisions

Revision e8dc0761 (diff)
Added by Adam Ruzicka about 1 year ago

Fixes #31705 - Handle timezones when scheduling jobs through API

We claimed to have support for iso8601 timestamps, but in reality we
discarded timezone information and assumed the timestamp to be in UTC.

History

#1 Updated by The Foreman Bot about 1 year ago

  • Assignee set to Adam Ruzicka
  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman_remote_execution/pull/617 added

#2 Updated by Adam Ruzicka about 1 year ago

  • Status changed from Ready For Testing to Closed

#3 Updated by Adam Ruzicka about 1 year ago

  • Fixed in Releases foreman_remote_execution-4.7.0 added

#4 Updated by Adam Ruzicka about 1 year ago

  • Fixed in Releases foreman_remote_execution-4.5.4 added

Also available in: Atom PDF