I have two applications using the same postgres DB. A laravel application and a rails application. The current data in the DB is in Y-m-d H:i:s format but whenever
Y-m-d H:i:s
you can set Time::DATE_FORMATS[:db] in application.rb
Time::DATE_FORMATS[:db] = "Y-m-d H:i:s.u"
looks more at strftime format