Uploaded image for project: 'Satellite'
  1. Satellite
  2. SAT-22488

When you create a sync-plan with "hammer sync-plan create" command, it is set in a time zone different from the time zone specified by the server or user.

XMLWordPrintable

    • Moderate
    • No

      Description of problem:

      When you create a sync-plan with "hammer sync-plan create" command, it is set in a time zone different from the time zone specified by the server or user.

      Version-Release number of selected component (if applicable):
      Satellite6.9

      How reproducible:
      100%

      Steps to Reproduce:

      1. timedatectl set-timezone 'Asia/Tokyo'
      2. timedatectl
        Local time: 火 2021-10-19 08:24:01 JST
        Universal time: 月 2021-10-18 23:24:01 UTC
        RTC time: 月 2021-10-18 23:23:46
        Time zone: Asia/Tokyo (JST, +0900) <<<<==
        NTP enabled: n/a
        NTP synchronized: no
        RTC in local TZ: no
        DST active: n/a
      1. hammer user info --id 6
        ID: 6
        Login: admin
        名前: Admin User
        Email: root@mshimura-test.com
        Admin: yes
        Disabled: no
        Last login: 2021/10/19 08:21:15
        Authorized by: Internal
        Effective admin: yes
        Locale: en
        Timezone: Tokyo <<<<==
        説明:
        Default organization:
        Default location:
        Roles:

      User groups:

      Inherited User groups:

      Created at: 2021/05/21 13:46:01
      Updated at: 2021/10/15 16:50:16

      1. hammer -u admin -p *** sync-plan create --organization-id 1 --name plan-cli-3 --sync-date "2021-10-19 10:00:00" --interval daily --enabled yes
        Sync plan created.
      2. hammer sync-plan info --organization-id 1 --id 6
        ID: 6
        名前: plan-cli-3
        Start Date: 2021/10/19 19:00:00 <<<<==
        Interval: daily
        Enabled: yes
        Cron Expression:
        Recurring Logic ID: 21
        説明:
        Created at: 2021/10/19 08:24:23
        Updated at: 2021/10/19 08:24:23
        Next Sync: 2021/10/19 19:00:00
        Products:

      Actual results:
      Probably set in timezone UTC+0.

      Expected results:
      When you create sync-plan on SatelliteWEB, it is set in the timezone of the logged-in user.
      hammer sync-plan command should also be set by the user's timezone.

      Additional info:

              aruzicka@redhat.com Adam Ruzicka
              jira-bugzilla-migration RH Bugzilla Integration
              Peter Ondrejka Peter Ondrejka
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: