Change time to timestamp in messenger