use english locale at SimpleDateFormat formatting

This commit is contained in:
tibbi 2017-05-20 22:27:42 +02:00
parent ee4533cf37
commit 72bfeacfd5
2 changed files with 2 additions and 2 deletions

View file

@ -29,5 +29,5 @@ ext {
propMinSdkVersion = 16
propTargetSdkVersion = propCompileSdkVersion
propVersionCode = 1
propVersionName = '2.17.8'
propVersionName = '2.17.9'
}

View file

@ -127,7 +127,7 @@ class PropertiesDialog() {
exif.getAttribute(ExifInterface.TAG_DATETIME).let {
if (it?.isNotEmpty() == true) {
try {
val simpleDateFormat = SimpleDateFormat("yyyy:MM:dd HH:mm:ss", Locale.getDefault())
val simpleDateFormat = SimpleDateFormat("yyyy:MM:dd HH:mm:ss", Locale.ENGLISH)
val dateTaken = simpleDateFormat.parse(it).time.formatLastModified()
addProperty(R.string.date_taken, dateTaken)
} catch (ignored: Exception) {