[ic] ic6 proposal: change all time() calls to DateTime

Stefan Hornburg (Racke) racke at linuxia.de
Thu Jan 30 21:14:23 UTC 2014


On 01/30/2014 04:08 PM, Peter Mottram wrote:
> I'd like to propose changing created and last_modified in ic6 code from time() to DateTime objects since epoch cannot be inserted directly into datetime/timestamp columns in many databases. Switching to DateTime means we can use DBIx::Class::InflateColumn::DateTime to look after the needs of the backend.
> 
> I'd be happy to work on a set of patches for Interchange6, Schema & Dancer plugin.
> 
> Any thoughts?

Yes, I think it makes sense. Please go ahead.

Regards
	Racke



-- 
Perl and Dancer Development

Visit our Open Source conference on E-commerce:

http://www.ecommerce-innovation.com/



More information about the interchange-users mailing list