fix for timestamp_to_datetime and unsign issue