app/controllers/spud/admin/posts_controller.rb in spud_blog-0.8.7 vs app/controllers/spud/admin/posts_controller.rb in spud_blog-0.8.8
- old
+ new
@@ -25,10 +25,10 @@
respond_with @post, :location => spud_admin_posts_path
end
def new
@categories = SpudPostCategory.grouped
- @post = SpudPost.new(:published_at => Time.now.strftime("%Y-%m-%d %H:%M"), :spud_user_id => current_user.id)
+ @post = SpudPost.new(:published_at => Time.zone.now, :spud_user_id => current_user.id)
respond_with @post
end
def create
@categories = SpudPostCategory.grouped
\ No newline at end of file