https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=39748 jonadab.theunsightlyone@gmail.com <jonadab.theunsightlyone@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jonadab.theunsightlyone@gma | |il.com --- Comment #26 from jonadab.theunsightlyone@gmail.com <jonadab.theunsightlyone@gmail.com> --- Minimal test case: use DateTime; my $tz = "Africa/Cairo"; my $year = 2025; my $month = 4; my $mday = 25; my $dt = DateTime->new ( time_zone => $tz, year => $year, month => $month, day => $mday, hour => 15 ); # So far so good, but now... my $trunc = $dt->truncate ( to => day ); # Fatal error This probably ought to be reported upstream to the DateTime maintainer. It's not documented in the POD for the truncate method in DateTime.pm, which suggests that it may not be a known limitation. At minimum it should be documented, or else truncate() should return the earliest valid time for that date. -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.