in reply to locale warnings when exec "+" op
If you look onto implementation of Add in Date::Handler source you will see the source of the problem (I think):
my $newdate = ref($self)->new({ date => $epoch, time_zone => $self->Ti +meZone() });
As you can see it creates new Date::Handler object inside, and ignores locale attribute of the current object. So new object uses default locale which is en_US. I hope the patch that you will attach to bug report will be applied soon ;)
Also, have a look onto other modules for manipulations with dates. DateTime is quite popular nowadays.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: locale warnings when exec "+" op
by PhillipHuang (Beadle) on Nov 12, 2010 at 09:25 UTC |