Set time format based on device settings. Props @nbradbury