On Mon, 26 Mar 2007, Nick Hibma wrote:

This could be simplified if we could specify a default time zone which is by default set to 'floating' for the DateTime::Format::MySQL module:

        use Date::Format::MySQL;

        Date::Format::MySQL::set_default_timezone('GMT');

I tend to not favor this sort of API, because it's basically a global. That means that if two CPAN modules both set it, the last one to call this method wins. It also doesn't play nice with mod_perl, where you may be running multiple apps under one persistent interpreter.

It seems like you're already inflating the column value into an object, so why not set the time zone at the same time?


-dave

/*===================================================
VegGuide.Org                        www.BookIRead.com
Your guide to all that's veg.       My book blog
===================================================*/

Reply via email to