Merge remote-tracking branch 'refs/remotes/origin/master'

This commit is contained in:
cyh 2024-11-14 11:39:22 +08:00
commit 2639203dcd
2 changed files with 8 additions and 8 deletions

View File

@ -941,10 +941,10 @@ class NewMainActivity : BaseActivity() {
if (language.equals("en")) {
val dateFormat = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
val locale = Locale.ENGLISH
SimpleDateFormat("dd/MM/yyyy HH:mm",locale)
SimpleDateFormat("MM/dd/yyyy HH:mm",locale)
} else {
val locale = Locale.ENGLISH
SimpleDateFormat("dd/MM/yyyy HH:mm",locale)
SimpleDateFormat("MM/dd/yyyy HH:mm",locale)
}
endTimeInfo = dateFormat.format(validPeriod)
} else {
@ -959,10 +959,10 @@ class NewMainActivity : BaseActivity() {
if(decodeString == "English"){
val dateFormat = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
val locale = Locale.ENGLISH
SimpleDateFormat("dd/MM/yyyy HH:mm",locale)
SimpleDateFormat("MM/dd/yyyy HH:mm",locale)
} else {
val locale = Locale.ENGLISH
SimpleDateFormat("dd/MM/yyyy HH:mm",locale)
SimpleDateFormat("MM/dd/yyyy HH:mm",locale)
}
endTimeInfo = dateFormat.format(validPeriod)
}else{

View File

@ -509,10 +509,10 @@ class NewAccFragment : BaseFragment(), CoroutineScope by CoroutineScope(Dispatch
if (language.equals("en")) {
val dateFormat = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
val localEN = Locale.ENGLISH
SimpleDateFormat("dd/MM/yyyy HH:mm",localEN)
SimpleDateFormat("MM/dd/yyyy HH:mm",localEN)
} else {
val localEN = Locale.ENGLISH
SimpleDateFormat("dd/MM/yyyy HH:mm",localEN)
SimpleDateFormat("MM/dd/yyyy HH:mm",localEN)
}
endTimeInfo = dateFormat.format(validPeriod)
} else {
@ -530,10 +530,10 @@ class NewAccFragment : BaseFragment(), CoroutineScope by CoroutineScope(Dispatch
if(decodeString == "English"){
val dateFormat = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
val locale = Locale.ENGLISH
SimpleDateFormat("dd/MM/yyyy HH:mm",locale)
SimpleDateFormat("MM/dd/yyyy HH:mm",locale)
} else {
val locale = Locale.ENGLISH
SimpleDateFormat("dd/MM/yyyy HH:mm",locale)
SimpleDateFormat("MM/dd/yyyy HH:mm",locale)
}
endTimeInfo = dateFormat.format(validPeriod)
}else{