Hammer sync-plan create date mismatch

Problem:
hammer sync-plan create using --sync-date doesn’t provide desired result

[root@HOSTNAME rpm-gpg]# hammer sync-plan create \

–interval weekly
–description “Saturdays at 1AM”
–enabled true
–name “Saturday 1AM”
–sync-date “2021-08-21 01:00:00”
Sync plan created.
[root@HOSTNAME rpm-gpg]# hammer sync-plan list
—|--------------|---------------------|----------|---------|-----------------|-------------------
ID | NAME | START DATE | INTERVAL | ENABLED | CRON EXPRESSION | RECURRING LOGIC ID
—|--------------|---------------------|----------|---------|-----------------|-------------------
2 | Saturday 1AM | 2021/08/20 18:00:00 | weekly | yes | | 2
—|--------------|---------------------|----------|---------|-----------------|-------------------

Expected outcome:
Expected start date to be 2021/08/21 01:00:00, per the --sync-date value.

Foreman and Proxy versions:
foreman-3.0.0-0.1.rc1
katello-4.2.0.rc1-1

Foreman and Proxy plugin versions:

Distribution and version:
CentOS Linux release 7.9.2009

Other relevant data:

I suppose that I could just use cron notation. Just wanted to get this noted.

Hi @WScottB

It looks like it takes a string as the param:

If you set it in the UI, does it list correctly with hammer?

It works correctly in the UI. Through a bit of trial and error, it seems that the code assumes UTC regardless of the system timezone? If I add the offset (-7 hours for AZ/MST), it works. This does conform to ISO 8601, but is confusing if you don’t happen to know that detail (as I did not). Maybe call that out explicitly in the documentation/help? I should be able to move on having figured that out.
[root@HOSTNAME rpm-gpg]# hammer sync-plan create \

–interval weekly
–description “Saturdays at 1AM”
–enabled true
–name “Saturday 1AM”
–sync-date “2021-08-21 01:00:00-7”
Sync plan created.
[root@HOSTNAME rpm-gpg]# hammer sync-plan list
—|--------------|---------------------|----------|---------|-----------------|-------------------
ID | NAME | START DATE | INTERVAL | ENABLED | CRON EXPRESSION | RECURRING LOGIC ID
—|--------------|---------------------|----------|---------|-----------------|-------------------
4 | Saturday 1AM | 2021/08/21 01:00:00 | weekly | yes | | 4
—|--------------|---------------------|----------|---------|-----------------|-------------------