id => { type => 'bigint', primary_key => 1 },
store => { type => 'bigint' },
name => { type => 'varchar', length => 45 },
excerpt => { type => 'varchar', length => 150 },
description => { type => 'text' },
quantity => { type => 'int', default => 1 },
quantity_available => { type => 'int', default => 0 },
quantity_claimed_subscriber => { type => 'int', default => 0 },
quantity_claimed_free => { type => 'int', default => 0 },
limitation => { type => 'int', default => 0 },
limitation_int => { type => 'int' },
offer_creation => { type => 'datetime', default => 'now', time_zone => 'UTC' },
offer_start => { type => 'datetime', time_zone => 'UTC' },
offer_end => { type => 'datetime', time_zone => 'UTC' },
expiration_int => { type => 'int', default => 0 },
expiration_mult => { type => 'char', length => 1, default => 'D' },
delivery_type => { type => 'char', length => 1, default => 1 },
random_codes => { type => 'boolean', default => 1 },
status => { type => 'tinyint', default => 0 },
purchase_price => { type => 'decimal' },
Whenever I create a new object and save it, it saves the object correctly on the database but then it dies with the following error:
This is really strange, since it does save the object with the correct date on the database.