added localeapp
convert time to integer