chore(deps): bump com.googlecode.ez-vcard:ez-vcard from 0.11.3 to 0.12.1 (#392)
* chore(deps): bump com.googlecode.ez-vcard:ez-vcard from 0.11.3 to 0.12.1 Bumps [com.googlecode.ez-vcard:ez-vcard](https://github.com/mangstadt/ez-vcard) from 0.11.3 to 0.12.1. - [Commits](https://github.com/mangstadt/ez-vcard/compare/0.11.3...0.12.1) --- updated-dependencies: - dependency-name: com.googlecode.ez-vcard:ez-vcard dependency-version: 0.12.1 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * chore: add extension function to format Temporal objects --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Naveen Singh <snaveen935@gmail.com>
This commit is contained in:
parent
5ff4f6991f
commit
f6500552ab
3 changed files with 12 additions and 9 deletions
|
|
@ -1,8 +0,0 @@
|
||||||
package org.fossify.messages.extensions
|
|
||||||
|
|
||||||
import android.text.format.DateFormat
|
|
||||||
import java.util.Date
|
|
||||||
|
|
||||||
fun Date.format(pattern: String): String {
|
|
||||||
return DateFormat.format(pattern, this).toString()
|
|
||||||
}
|
|
||||||
|
|
@ -0,0 +1,11 @@
|
||||||
|
package org.fossify.messages.extensions
|
||||||
|
|
||||||
|
import java.time.format.DateTimeFormatter
|
||||||
|
import java.time.temporal.Temporal
|
||||||
|
import java.util.Locale
|
||||||
|
|
||||||
|
fun Temporal.format(pattern: String): String {
|
||||||
|
return DateTimeFormatter
|
||||||
|
.ofPattern(pattern, Locale.getDefault())
|
||||||
|
.format(this)
|
||||||
|
}
|
||||||
|
|
@ -28,7 +28,7 @@ app-build-minimumSDK = "26"
|
||||||
app-build-javaVersion = "VERSION_17"
|
app-build-javaVersion = "VERSION_17"
|
||||||
app-build-kotlinJVMTarget = "17"
|
app-build-kotlinJVMTarget = "17"
|
||||||
#Helpers
|
#Helpers
|
||||||
ez-vcard = "0.11.3"
|
ez-vcard = "0.12.1"
|
||||||
shortcut-badger = "1.1.22"
|
shortcut-badger = "1.1.22"
|
||||||
[libraries]
|
[libraries]
|
||||||
#AndroidX
|
#AndroidX
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue