Fix and simplify datetime method selection people/ilmari/icdt-method-fix
authorDagfinn Ilmari Mannsåker <ilmari@ilmari.org>
Tue, 17 May 2016 14:31:47 +0000 (15:31 +0100)
committerDagfinn Ilmari Mannsåker <ilmari@ilmari.org>
Tue, 17 May 2016 14:31:47 +0000 (15:31 +0100)
commit68742c908497a4ade1bd62987176a3028334fd05
tree1af62be65fe89895e8d407618f0da6e83a9eafba
parentdd1853390485b141d014a59aa550fba966493784
Fix and simplify datetime method selection

No DateTime::Format class has ever provided methods called
(parse|format)_timestamp_with(out)?_timezone.  Both Pg and Oracle
spell it time_zone (as does the rest of the DateTime ecosystem).

While we're at it unify all the almost-identical branches to a
single regex match and substitution instead.
lib/DBIx/Class/InflateColumn/DateTime.pm