Skip to content

Commit

Permalink
Change PaymentModel#date type to datetime_utc
Browse files Browse the repository at this point in the history
By changing the type of `PaymentModel#date` to `datetime_utc`, we can
pass timestamps with UTC offsets to Xero's payments API endpoint, and
let Xero parse the dates in the proper timezone for the Organisation in
context.
  • Loading branch information
speric committed Feb 12, 2016
1 parent 7250ff1 commit cf5b177
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/xeroizer/models/payment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class Payment < Base
set_primary_key :payment_id

guid :payment_id
date :date
datetime_utc :date
decimal :amount
decimal :currency_rate
string :payment_type
Expand Down

0 comments on commit cf5b177

Please sign in to comment.