On Jul 21, 2014, at 1:22 PM, avery.ro...@insecure-it.com wrote: > In my view I'm displaying a timestamp of when an IPS event occurred <%= > event[:timestamp] %>. The timestamp in the database is correct, but what is > displayed is four hours in the future.. Why is this being changed, and how > can I just have it display the actual timestamp?
Time zones. What db are you using? What is the type on the column you use to save the timestamp? How sure are you that it is correct in the database? (IOW, do you understand whether the db treats it as UTC or not tied to any time zone, and do you understand how whatever software you're using to look at it is interpreting it?) -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (303) 722-0567 voice -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/64093F4E-0279-4E0E-99A9-BD4122883B4A%40elevated-dev.com. For more options, visit https://groups.google.com/d/optout.