Properly pad time on date function