When I have just:
resource.starts_at
I see this in my browser:
2022-04-24T15:00:00.000Z
If I run in the Pry console, I see:
[2] pry(#<RSpec::ExampleGroups::Events::GETEvents>)> resource.starts_at
=> Sun, 24 Apr 2022 15:00:00.000000000 UTC +00:00
[3] pry(#<RSpec::ExampleGroups::Events::GETEvents>)> resource.starts_at.strftime('%H:%M:%S')
=> "15:00:00"
I would like to format this to “15:00:00”, so I run the following in the Chrome console:
I18n.localize('date.formats.events_time_format', "2022-04-24T15:00:00.0007Z")
However instead of 15:00:00 it shows me 16:00:00 – how can I get it to show me 15:00:00 please?