The variable contains the date/time value as UTC in ActiveSupport::TimeWithZone, but I want to change it to the date/time based on Korea.
ruby-on-rails time
When the variable is named deu_date
due_date.in_time_zone("Seoul")
You can do it.
© 2024 OneMinuteCode. All rights reserved.