How do you convert a Unix timestamp (seconds since epoch) to Ruby DateTime?
If you wanted just a Date, you can do Date.strptime(invoice.date.to_s, '%s') where invoice.date comes in the form of anFixnum and then converted to a String.
Date.strptime(invoice.date.to_s, '%s')
invoice.date
Fixnum
String