[Refactor/Dev] Revolution::Page#publish! is not working properly
Closed this issue · 0 comments
tiagoamaro commented
When trying to call a Revolution::Page#publish!
method, depending on your timezone, it won't mark the page as published, since the application is on LA time, but the publish method is calling Time.now.utc
website/engines/revolution/app/models/revolution/page.rb
Lines 82 to 85 in d94a69b
Steps
- Change this to
Time.zone.now
- Test with Timecop or something like that