Subject: | time_format('Day') doesn't work for Sundays even though $time{'Day'} does |
This is with Strawberry Perl 5.12.3 under Windows:
% perl -w -MTime::Format -MDateTime -E 'say time_format("Day",
DateTime->new(year=>2011,month=>7,day=>16))'
Sat
% perl -w -MTime::Format -MDateTime -E 'say time_format("Day",
DateTime->new(year=>2011,month=>7,day=>17))'
Use of uninitialized value in substitution iterator at (eval 905) line
378, <DATA> line 1.
% perl -w -MTime::Format -MDateTime -E 'say $time{"Day",
DateTime->new(year=>2011,month=>7,day=>17)}'
Sun
Looks like something is wrong when using time_format() for Sundays.