Skip to content

Commit

Permalink
Fixes #36418 - Honor TZ in datetime normalizer (#369)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamruzicka committed May 19, 2023
1 parent af674ad commit 5c0846b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/hammer_cli/options/normalizers.rb
Expand Up @@ -368,7 +368,7 @@ def common_description

def format(date)
raise ArgumentError unless date
::DateTime.parse(date).to_s
::Time.parse(date).iso8601
rescue ArgumentError
raise ArgumentError, _("'%s' is not a valid date.") % date
end
Expand Down

0 comments on commit 5c0846b

Please sign in to comment.