Fix: Use long int for timestamp formatting