diff --git a/.github/workflows/gradle-wrapper-validation.yml b/.github/workflows/gradle-wrapper-validation.yml new file mode 100644 index 0000000000..405a2b3065 --- /dev/null +++ b/.github/workflows/gradle-wrapper-validation.yml @@ -0,0 +1,10 @@ +name: "Validate Gradle Wrapper" +on: [push, pull_request] + +jobs: + validation: + name: "Validation" + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: gradle/wrapper-validation-action@v1 diff --git a/CHANGES.md b/CHANGES.md index 6c536503c6..5546262c7f 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -11,6 +11,7 @@ Improvements 🙌: - Ensure users do not accidentally ignore other users (#1890) Bugfix 🐛: + - Fix incorrect date format for some Asian languages (#1928) - Fix invisible toolbar (Status.im theme) (#1746) - Fix relative date time formatting (#822) - Fix crash reported by RageShake @@ -33,6 +34,7 @@ Other changes: - Rename package `im.vector.riotx.multipicker` to `im.vector.lib.multipicker` - Rename package `im.vector.riotx` to `im.vector.app` - Remove old code that was used on devices with api level <21 + - Add Official Gradle Wrapper Validation Action Changes in Element 1.0.4 (2020-08-03) =================================================== diff --git a/vector/src/main/java/im/vector/app/core/date/VectorDateFormatter.kt b/vector/src/main/java/im/vector/app/core/date/VectorDateFormatter.kt index 1b92511104..02050b0a56 100644 --- a/vector/src/main/java/im/vector/app/core/date/VectorDateFormatter.kt +++ b/vector/src/main/java/im/vector/app/core/date/VectorDateFormatter.kt @@ -17,6 +17,7 @@ package im.vector.app.core.date import android.content.Context +import android.text.format.DateFormat import android.text.format.DateUtils import im.vector.app.core.resources.LocaleProvider import org.threeten.bp.LocalDateTime @@ -45,8 +46,9 @@ class VectorDateFormatter @Inject constructor(private val context: Context, private val messageHourFormatter by lazy { DateTimeFormatter.ofPattern("H:mm", localeProvider.current()) } + private val messageDayFormatter by lazy { - DateTimeFormatter.ofPattern("EEE d MMM", localeProvider.current()) + DateTimeFormatter.ofPattern(DateFormat.getBestDateTimePattern(localeProvider.current(), "EEE d MMM")) } fun formatMessageHour(localDateTime: LocalDateTime): String {