updated unixttime2tm to fix timezone offset issues