mirror of
https://github.com/jfoucry/Pilldroid.git
synced 2024-11-22 04:29:22 +01:00
Minor change in date formet
This commit is contained in:
parent
b6d0322acd
commit
d581492ee6
1 changed files with 2 additions and 1 deletions
|
@ -5,6 +5,7 @@ import android.util.Log;
|
||||||
import java.text.DateFormat;
|
import java.text.DateFormat;
|
||||||
import java.text.ParsePosition;
|
import java.text.ParsePosition;
|
||||||
import java.text.SimpleDateFormat;
|
import java.text.SimpleDateFormat;
|
||||||
|
import java.time.LocalTime;
|
||||||
import java.util.Calendar;
|
import java.util.Calendar;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.Locale;
|
import java.util.Locale;
|
||||||
|
@ -95,7 +96,7 @@ class UtilDate {
|
||||||
* @return formatted Date String
|
* @return formatted Date String
|
||||||
*/
|
*/
|
||||||
static String convertDate(long dateInMilliseconds) {
|
static String convertDate(long dateInMilliseconds) {
|
||||||
DateFormat formatter = new SimpleDateFormat("dd/MM/yy HH:mm:ss", Locale.FRANCE);
|
DateFormat formatter = new SimpleDateFormat("dd/MM/yy HH:mm:ss", Locale.getDefault());
|
||||||
Calendar calendar = Calendar.getInstance();
|
Calendar calendar = Calendar.getInstance();
|
||||||
calendar.setTimeInMillis(dateInMilliseconds);
|
calendar.setTimeInMillis(dateInMilliseconds);
|
||||||
return formatter.format(calendar.getTime());
|
return formatter.format(calendar.getTime());
|
||||||
|
|
Loading…
Reference in a new issue