Preapproval "start_time" and "created_time"

44 views
Skip to first unread message

Lux Nova

unread,
Oct 17, 2012, 8:29:25 PM10/17/12
to wepa...@googlegroups.com
While defining a successful wepay preapproval in Rails, the preapproval lookup sends back "start_time", "create_time" and "end_time" in integers instead of a unix timestamp format. here's the error I receive:
PG::Error: ERROR:  column "start_time" is of type timestamp without time zone but expression is of type integer

This happens regardless of whether I push a to_string or  to_datetime in my 'preapproval/create' call. For some reason the response from the lookup call comes back as an integer.

In my Postgresql database I have "start_time", "create_time" and "end_time" all set to the datetime datatype which should format a unix timestamp properly

Has anybody seen this error before?

Lux Nova

unread,
Oct 21, 2012, 3:23:39 PM10/21/12
to wepa...@googlegroups.com
Fixed. Skipped trying to save the responses from Wepay into database..

On Wednesday, October 17, 2012 5:29:25 PM UTC-7, Lux Nova wrote:
Reply all
Reply to author
Forward
0 new messages