I have a problem with my time_zone
in Rails APP.
I have it configured to London in my application.rb
:
config.time_zone = 'London'
config.active_record.default_timezone = :local
Then, in my controller I have something like this:
Element.create(start_hour: Time.strptime('16/04/2018 12:00', '%d/%m/%Y %H:%M'))
What can I do to save this date and when I print the time in the view it returns me the London time?
For example, in the previous example, now in my view: element.start_hour.strftime('%H:%M')
prints 13:00
but I want that it prints 12:00