Format time using the current locale