Skip to content
Browse files

Latest timezone

  • Loading branch information...
1 parent 8173638 commit ec6c48a0a62993fc82be5473b124d40f7c60a3e0 @pnts pnts committed Mar 11, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 happstr.rb
View
2 happstr.rb
@@ -92,7 +92,7 @@ class Checkin
"with comment & location " + Checkin.where(:source.exists => true, :comment.exists => true).count.to_s + "<br />" +
"<br /><ul>" +
Checkin.where(:comment.exists => true).order_by({created_at: -1}).limit(200).to_a.map do |checkin|
- "<li>#{(checkin.created_at.utc - 18000).strftime("%B %d, %Y @ %H:%M")}\t#{checkin.comment}</li>"
+ "<li>#{Time.at((checkin.created_at.utc.to_i - 18000)).strftime("%B %d, %Y @ %H:%M")}\t#{checkin.comment}</li>"
end.join("\n") + "<br />"
end

0 comments on commit ec6c48a

Please sign in to comment.
Something went wrong with that request. Please try again.