-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
Description
Events get formatted fine, but not side hours:
Also, I've noticed that the library uses some constant ways to show the time formatting, by checking if the system uses 24 hours or not. That's not the best way to do it.
The correct way to do it is by getting the OS format alone :
/**
* gets the default time formatter of the device
*/
@JvmStatic
fun getFormatTimeUsingDeviceSettings(context: Context, useUtc: Boolean): java.text.DateFormat {
return (DateFormat.getTimeFormat(context)
?: SimpleDateFormat("HH:mm", Locale.getDefault()))
}
Metadata
Metadata
Assignees
Labels
No labels
