Project

General

Profile

Actions

Bug #31705

closed

hammer cli --start-at not honoring iso8601 timezone

Added by Adam Ruzicka almost 4 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Foreman
Difficulty:
Triaged:
No
Found in Releases:

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')
...

Actions

Also available in: Atom PDF