use english locale at SimpleDateFormat formatting
This commit is contained in:
parent
ee4533cf37
commit
72bfeacfd5
2 changed files with 2 additions and 2 deletions
|
@ -29,5 +29,5 @@ ext {
|
||||||
propMinSdkVersion = 16
|
propMinSdkVersion = 16
|
||||||
propTargetSdkVersion = propCompileSdkVersion
|
propTargetSdkVersion = propCompileSdkVersion
|
||||||
propVersionCode = 1
|
propVersionCode = 1
|
||||||
propVersionName = '2.17.8'
|
propVersionName = '2.17.9'
|
||||||
}
|
}
|
||||||
|
|
|
@ -127,7 +127,7 @@ class PropertiesDialog() {
|
||||||
exif.getAttribute(ExifInterface.TAG_DATETIME).let {
|
exif.getAttribute(ExifInterface.TAG_DATETIME).let {
|
||||||
if (it?.isNotEmpty() == true) {
|
if (it?.isNotEmpty() == true) {
|
||||||
try {
|
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()
|
val dateTaken = simpleDateFormat.parse(it).time.formatLastModified()
|
||||||
addProperty(R.string.date_taken, dateTaken)
|
addProperty(R.string.date_taken, dateTaken)
|
||||||
} catch (ignored: Exception) {
|
} catch (ignored: Exception) {
|
||||||
|
|
Loading…
Reference in a new issue