[Catalyst] Storing DateTime in session causes warning
ruben.fonseca at log.pt
Fri Nov 16 13:56:00 GMT 2007
On Fri, 2007-11-16 at 12:39 +0100, Tobias Kremer wrote:
> > > Tobias Kremer wrote:
> > > > I'm storing a DateTime object in $c->session and I just realized that
> > > > this is causing the following warning on every request:
> > > >
> > > > "Use of uninitialized value in subroutine entry at ../../lib/Storable.pm
> > > > (autosplit into ../../lib/auto/Storable/_freeze.al) line 290."
> > What version of DateTime::Locale do you guys have?
> > 0.32 had a bug in it that didn't play nice with storable, so make sure you
> > have the latest.
> I'm on v0.35, so unfortunately it's not the culprit :(
Just to report I'm feeling the same symptom on 0.35 too. Didn't try
earlier versions. On a specific case, this warning is causing me an
error when passing the DateTime object from the session to the database.
More information about the Catalyst