Re: [Perl-workflow-devel] Date formats in Workflow/Persister/DBI.pm
Brought to you by:
jonasbn
From: Jonas B. N. <jo...@gm...> - 2007-06-05 08:07:48
|
Hello Jim and welcome, Your suggestion for putting the format in the persister config is good, since I am sure that the different DB backends use differing formats and we also have to adapt/support non-db persisters. So does anybody else have a take on this, else I will set up a task for this and put it in the roadmap. jonasbn On 04/06/2007, at 21.35, Jim Brandt wrote: > Hello all, > > I've been working with the Workflow module using Oracle as the DB > back-end. I found that the default date formats didn't work with our > Oracle DB. I was able to change them by hacking > Workflow/Persister/DBI.pm, but I was wondering if there was a way to > make this easier to configure. > > Maybe make the format something you could set in the persister.xml > config file? > > Any other ideas? Anyone else have issues with the default data > formats? > > The changes I made were like: > > #my $parser = DateTime::Format::Strptime->new( pattern => '%Y-%m-%d > %H:%M' ); > my $parser = DateTime::Format::Strptime->new( pattern => > '%m:%d:%Y:%H:%M:%S' ); > > > Thanks, > Jim > > > -- > Jim Brandt > Administrative Computing Services > University at Buffalo > > > > ---------------------------------------------------------------------- > --- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Perl-workflow-devel mailing list > Per...@li... > https://lists.sourceforge.net/lists/listinfo/perl-workflow-devel |