Skip to content

Commit

Permalink
Refs #30371 - Fix date/time display of sync plans
Browse files Browse the repository at this point in the history
(cherry picked from commit f3cd18a)
  • Loading branch information
sbernhard authored and m-bucher committed Aug 21, 2023
1 parent e965cd7 commit 40ad573
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions app/models/katello/sync_plan.rb
Original file line number Diff line number Diff line change
Expand Up @@ -129,11 +129,7 @@ def validate_sync_date
end

def sync_date_sans_tz
if User.current.try(:timezone)
return self.sync_date.strftime('%a, %d %b %Y %H:%M:%S')
else
sync_date
end
self.sync_date.strftime('%Y-%m-%d %H:%M:%S %z')
end

def next_sync
Expand Down

0 comments on commit 40ad573

Please sign in to comment.