Source: Parity Cube Blog

Parity Cube Blog [Rails] ActiveRecord Time Zone - Not Automatically Set in Rails…

I bumped across this very interesting problem related to ActiveRecord time Zone... I had some code snippet like this: query = "INSERT INTO link_logs VALUES(DEFAULT,'#{self.url}','#{self.affiliatized_url}','#{self.publisher_id}',DEFAULT,DEFAULT)" ActiveRecord::Base.connection.execute(query); Basically, a very simply Insert query to push url, affiliate_url , publisher_id and timestamps.... Problem: Timestamps were getting inserted in UTC Time Zone... Solution: First, I checked Application Time [...]

Read full article »
Est. Annual Revenue
$100K-5.0M
Est. Employees
25-100
Mehul Jobanputra's photo - Co-Founder of Parity Cube

Co-Founder

Mehul Jobanputra

CEO Approval Rating

76/100

Read more