http://www.perlmonks.org?node_id=627915


in reply to Re: Strage result using localtime to convert epoch time
in thread Strage result using localtime to convert epoch time

Using CORE::localtime should work:
print join(',',CORE::localtime($epoch_seconds));