Skip to content

Commit

Permalink
Use format yyyyMMdd_HHmmss for current date
Browse files Browse the repository at this point in the history
This change is a partial effort towards:
-FossifyOrg/Contacts#89
- FossifyOrg/General-Discussion#129
  • Loading branch information
MrChocolatine authored May 11, 2024
1 parent f056aa7 commit 88e7bfb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ fun Context.getMyContactsCursor(favoritesOnly: Boolean, withPhoneNumbersOnly: Bo
}

fun Context.getCurrentFormattedDateTime(): String {
val simpleDateFormat = SimpleDateFormat("yyyy_MM_dd_HH_mm_ss", Locale.getDefault())
val simpleDateFormat = SimpleDateFormat("yyyyMMdd_HHmmss", Locale.getDefault())
return simpleDateFormat.format(Date(System.currentTimeMillis()))
}

Expand Down

0 comments on commit 88e7bfb

Please sign in to comment.