Skip to content

Commit

Permalink
Keep Time.zone.parse('...Z') as a good example
Browse files Browse the repository at this point in the history
  • Loading branch information
armandmgt committed Oct 14, 2024
1 parent 972c179 commit 737721c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/rubocop/cop/rails/time_zone.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@ module Rails
# Time.current
# Time.zone.now
# Time.zone.parse('2015-03-02T19:05:37')
# Time.parse('2015-03-02T19:05:37Z') # Respect ISO 8601 format with timezone specifier.
# '2015-03-02T19:05:37Z'.to_time # Respect ISO 8601 format with timezone specifier.
# Time.zone.parse('2015-03-02T19:05:37Z') # Respect ISO 8601 format with timezone specifier.
# Time.parse('2015-03-02T19:05:37Z') # Also respects ISO 8601
# '2015-03-02T19:05:37Z'.to_time # Also respects ISO 8601
#
# @example EnforcedStyle: flexible (default)
# # `flexible` allows usage of `in_time_zone` instead of `zone`.
Expand Down

0 comments on commit 737721c

Please sign in to comment.