Subject: | Date add returns wron result when timezone is set. |
perl -e 'use DateTime; $a = DateTime->new( year=>2005,month=>3,day=>1,time_zone=>"Europe/Berlin" ); print $a."\n";$a->add( "months"=>1 ); print $a."\n";'
returns
2005-03-01T00:00:00
2005-03-29T01:00:00
but one month from 1st march is 1st april.