fameandpartners/website

[Refactor/Dev] Revolution::Page#publish! is not working properly

Closed this issue · 0 comments

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

def publish!(publish_date = nil)
publish_date ||= Time.now.utc
update_attributes!(:publish_from => publish_date)
end

Steps

  • Change this to Time.zone.now
  • Test with Timecop or something like that